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 - How to programmally set reviewer or approver of a Workflow

Flooux - Tuesday, June 12, 2012 3:42 PM:

Hi,

I have created an item type and a form. This item type is link to a basic Workflow which contain an approbation process.

In my form I have a dropdown list containing 3 values.

I want that the value selected in the dropdown list will be the assigned.

So I want to know how to programmally set assigned people after saving the form.

I hope I'm clear enough, if not I will add some screenshot.

 



aponceot - Tuesday, June 12, 2012 4:31 PM:

Hi Florent,

In order to do that, you will need to retrieve the whole data structure from the Item to the Workflow Process assignee.

It looks like that : 

Item > Workflow > Worflow Process >  Worflow Process Activity > Activity > Activity Assignments

Activity Assignments is a relationship to Identity, so you can add / edit / delete items instances.

You just need to maintain the assignee every time the Item is changed (On after Save Event  of the Item).

Hope it's helpfull.



Flooux - Tuesday, June 12, 2012 4:48 PM:

Thansk for your quick reply, it's very helpfull for me.

 

Do you know some c#, vb or js function to use in order to get these information and to set some property like the assignee in this case?