naccarati
Scholar

Start a list workflow from a site workflow (subtopic: Flex tasks)

Hi,

I'd like to create a site workflow that loops through a list for specific conditions.  When it finds those conditions, I'd like the site workflow to start a list workflow on the item that meets the conditions.

Why?  Has to do with Flex Tasks.  From what I can tell, and I could be very wrong, assigning a flex task doesn't work well in a for each loop.  At least, I haven't been able to get it to work.

Any ideas anyone?

Thanks!

 

0 Kudos
Reply
3 Replies
emha
Collaborator

Re: Start a list workflow from a site workflow (subtopic: Flex tasks)

you'll have to start list workflow from site workflow over webservice calll to Workflow.asmx service method StartWorkflowOnListItem

 

https://community.nintex.com/t5/How-To-s/Starting-Workflows-With-Web-Service/ta-p/87409?collapse_dis...

 

https://help.nintex.com/en-US/sdks/sdk2013/#Reference/SOAP/NW_REF_SOAP_StartWorkflowOnListItem.htm%3...

0 Kudos
Reply
naccarati
Scholar

Re: Start a list workflow from a site workflow (subtopic: Flex tasks)

And this can be done inside the for each loop? And is has to be farm credientials to do the soap thing?

0 Kudos
Reply
emha
Collaborator

Re: Start a list workflow from a site workflow (subtopic: Flex tasks)

sure, you can call webservice from within the loop.

 

you do not need farm credentials. you can run it with whatever user account. of course, restrictions applied to the user account will apply to webservice call as well.

0 Kudos
Reply