Skip to main content
Nintex Community Menu Bar
Solved

How to reference an task created by workflow

  • August 17, 2023
  • 3 replies
  • 67 views
  • Translate

rei_dipetersen
Forum|alt.badge.img+4

I am creating a task assigning it to our IT group so that anyone in that group can complete the task.  I have to send the notification to our Helpdesk application via Email.  

I created a parallel action.  One branch creates the task, the other branch waits for a minute and then sends the notification to the Helpdesk.  

In the notification, I would like to reference the task created.  How do I get the value of the task created?  The “Store Task Id” in variable isn’t populated until the task has been completed.  How else can we get the value of the task ID?

Best answer by rei_dipetersen

I ended up creating a parallel execution branch.  I created a task in one branch and in the other, I waited a minute and then queried the task list for the task that I created in the other branch.  To me, this is a hack.  The create task action should return a task ID so we can send notifications (outside the control) or so we can add meta-data to the task form. 

View original
Did this topic help you find an answer to your question?

3 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2461 replies
  • December 6, 2023

Hi @rei_dipetersen,

To obtain the Task ID, you need to query the task list and search for the recently created task. To quickly locate the task just created, you can create a unique task name by appending the date and time to the name.

Translate

rei_dipetersen
Forum|alt.badge.img+4
  • Author
  • Scholar
  • 13 replies
  • Answer
  • December 11, 2023

I ended up creating a parallel execution branch.  I created a task in one branch and in the other, I waited a minute and then queried the task list for the task that I created in the other branch.  To me, this is a hack.  The create task action should return a task ID so we can send notifications (outside the control) or so we can add meta-data to the task form. 

Translate

Forum|alt.badge.img+8
  • Scholar
  • 57 replies
  • December 14, 2023

Can you use “Create Item” and point it to a Task list?

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings