Skip to main content
Solved

Passing parameters from a task template in a processflow


Forum|alt.badge.img

When creating a record using a Task template how can you pass the created record id in a process variable for the rest of the process flow. 
Is this possible within the task template? Or do I need to use other functionality?

Best answer by Mark_Plaggenborg

@Pieter Jan Bouma If you wish the resulting “order_id” be out into the Process flow variable, make sure the Task parameter is also marked as “Output”:
 

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

3 replies

Remco Duijsens
Vanguard
Forum|alt.badge.img+1

Hi Pieter Jan,

For this you need to create a process variable within the process flow. You then create the record in your task template and set the variable with scope_identity() like set @your_process_variable_name = scope_identity(). You will then have this record id available in your process flow. 


Forum|alt.badge.img

Hi Remco,

Thanks for the reply. I'm still having some trouble with it. 
The parameter will not be in the task functionality from itself
 

I have tried to work around this by adding this parameter to the task as input and hiding it:
 

This allows me to use the parameter within the template
 

However after doing a set @order_id in the template the value will still be empty in the process flow

(i have also tried select)

Then configuring the output from the task as the process variable

But still no variable

 


@Pieter Jan Bouma If you wish the resulting “order_id” be out into the Process flow variable, make sure the Task parameter is also marked as “Output”:
 

 


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