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 - Populate Values on Workflow Process Item

mendenaresh1357 - Tuesday, December 20, 2011 4:21 PM:

HI,

I added 2 properties to Workflow Process Itemtype. Now I am trying to populate these property values on onBeforeAdd /onAfterAdd events. But i always get the Error "Not a Single Item".

The reason for customizing Workflow Process Itemtype is to show the property values(added property) on the "Workflow Process History" Report.

How can i populate some property values on Workflow Process Item on Workflow Instantiation.

 

Thanks & Regards,

Naresh Mende.



AdamStrachan - Tuesday, December 20, 2011 6:44 PM:

Can you show the code that you're using to "get" the workflow process item to edit?

The "not a single item" error occurs when you're trying to edit the properties of an Item, which either doesn't contain any items, or is a collection of items.



mendenaresh1357 - Wednesday, December 21, 2011 7:10 AM:

The method is added OnAfterAdd/OnBeforeAdd event of Workflow Process Itemtype. So i get the Workflow Process as Context Item "this".