This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Alternate method for innovator.getAssignedActivities()

Prasad90 - Friday, February 8, 2013 6:02 AM:

When I used "getAssignedActivities()" method, IOM Show me following message:

Aras.IOM.Innovator.getAssignedActivities(String,String) is Obsolete. "The method will be removed from future releases if IOM".  

what is the alternate method for getAssignedAcitivities()?

 



zahar - Friday, February 8, 2013 12:42 PM:

Item qty = this.getInnovator().newItem("Activity Assignment", "get");

qty.setProperty("related_id", UserIdentityID);

qty = qty.apply();

 

//If you get only active assignments add following 2 lines before apply()

Item Activity = qty.createPropertyItem("source_id", "Activity", "get");

Activity.setProperty("current_state", "Active"); 



Prasad90 - Tuesday, February 12, 2013 1:00 AM:

Thanks Zaher Chernov.

So that means I have to use this code each time I want to get Assigned Activities and not any other alternate method present in IOM to achieve the same.