Hi All,

I am creating job to copy files from source to destination on the fly using powershell API scripts.

How can i add notifications settings in the powershell script.

If i am configuring upload job, Repliweb UI has option to set notifications using upload properties window to set "On Completion" - success, Error and Abort.

But here I am using script to create a job and need to do the notification settings to track job status.

Below is my code:

$test = add-pssnapin r1_ps_api
$R1session = Get-R1Session
$R1session.connect("10.23.9.30","testacc","test"," test","",$false,"")
echo "edge_override"
$qual=" -name=sen_test -edge=10.23.9.30 -user=testacc -edge_password=test -type=replication -source_dir=\\10.23.9.30\To_QA\source -target_directory=\\10.23.9.30\To_QA\destination"
$R1session.Submit($qual)
echo "edge_2"
$R1session.disconnect()