Skip to main content

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?

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. 


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”:
 

 


Reply