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.
Solved! Go to Solution.
Check out this guy's results: https://community.nintex.com/message/2584?sr=search&searchId=be1ff480-e891-4c66-8949-61b336816b52&se...
And here another thread with the same issue: https://community.nintex.com/message/2533?sr=search&searchId=bbfb6184-d5d3-46ba-8f81-e50a17433a55&se...
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
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
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