cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

Programmatically Starting Workflow and Pass User Value

Jump to solution

Hey all!

I'm currently starting a SP 2010 Nintex workflow in C# via the SPWorkflowManager.StartWorkflow method, which starts fine, but I need to set a Reviewer (User or Group) field as part of the Initialization Data for the workflow instance. I am trying to set the value in xml and pass it in the eventData parameter in the StartWorkflow method, but I don't know what format the xml should be in. Here is the workflow's Association Data xml  I have to start with:

<Data>

    <Reviewer />

     <Claimed_x005F_x0020_Reviewer />

</Data>

What value do I set the Reviewer element to? I imagine it's something that specifies the user/group id, user/group account name, and if it is a user or group type. Any help would be appreciated.

Labels: (1)
0 Kudos
Reply
2 Replies
Highlighted
Automation Master
Automation Master

Re: Programmatically Starting Workflow and Pass User Value

Jump to solution

here is a link to NWF 2013 SDK where there is described association data format, including examples.

it should be the same for NWF2010

Using association data for starting workflows

View solution in original post

Reply
Highlighted
Not applicable

Re: Programmatically Starting Workflow and Pass User Value

Jump to solution

Thanks Marian, I used the format <Variable>domain\\user</Variable> in my xml and it appears to be setting it correctly.

Reply