cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
murphybp2
Nintex Newbie

Issue Retrieving Flexi Task ID

Jump to solution

I'm creating a custom reminder for a Flexi Task.  So I have a parallel action setup with one branch that has the Flexi Task, and the other has the reminder steps.  In the reminder notification, I want to include a link to approve the task.  Within the Flexi task action, there is the Approval URL item.  But since this reminder is outside of that action, I don't have that.  So I need to construct the URL myself, which isn't hard, as long as I have the task ID.  In the Flexi Task I have configured a variable to store the task ID.  However the problem I'm having is that when I insert that variable in my reminder, it's empty.  I tried adding a delay thinking it was a timing issue, but that didn't resolve the issue.  I'm wondering if that variable isn't set until the Flexi Task is completed.  Does anyone know?  Anyone have a solution for this scenario?  Thanks.

Labels: (1)
0 Kudos
Reply
4 Replies
Automation Master
Automation Master
murphybp2
Nintex Newbie

Re: Issue Retrieving Flexi Task ID

Jump to solution

Thanks for the info, didn't find those when I was searching for answers.  That's a bummer that it doesn't provide the task ID before the task is completed.  If anyone else is having the same issue, here's the link to vote on having it enhanced in future releases. Populate task id as soon as the task is created – Customer Feedback for Nintex

View solution in original post

0 Kudos
Reply
Not applicable

Re: Issue Retrieving Flexi Task ID

Jump to solution

hi,

i solved the issue with a little workaround

parallell actions, one branch the flexi task, second branch as follows:

1) wait action (1 minute, just so that the next action won't get executed before the flexitask workflow task is created)

2) web-service call to Website-URL/_vti_bin/NintexWorkflow/workflow.asmx, method: GetRunningWorkflowTasksForListItem

itemid = properties of element -> id

listname = list name

store result in multiline text variable

3) xml query, source xml -> that workflow variable

use xpath: /defaultNS:UserTask/defaultNS:HumanWorkflowID

store in string a variable

4) set a variable of type actionid to the value of the string variable before

5) use that as action id in task reminder

works like a charm

cheers,

thomas

edit: of course you could run into a problem if you have multiple flexitasks in parallel actions - but aside from that the xml query should only return exactly one action id so it got to work

Reply
Not applicable

Re: Issue Retrieving Flexi Task ID

Jump to solution

Hi Thomas,

Thanks a lot for the solution.

It actually works like a charm. 

Thanks again..

Cheers.

0 Kudos
Reply