How to add completion notification automatically in Express ECO when Express ECO is saved?

Hi Expert,

I tried to create C# code to to add completion notification automatically in Express ECO when Express ECO is saved.

      var new_Compeletion_notification = inn.newItem("Express ECO Notification", "add");
      var exp_eco_id = this.getProperty("id","");
      new_Compeletion_notification.setProperty("source_id"  , exp_eco_id);
      new_Compeletion_notification.setProperty("owned_by_id", "8CC42C5770DE42A898EAEBF55091B824");
      Item result = new_Compeletion_notification.apply();

But, the result is -1. 

Would you please help how to do this?

Thanks, Expert!

Parents Reply Children
No Data