The CreatorCon Call for Content is officially open! Get started here.

add RITM number in task description?

SNnewbie2
Tera Expert

How do I add RITM number inside of my task description.   I know I have to add the code inside of the workflow activity:

task.description = ???

1 ACCEPTED SOLUTION

ccajohnson
Kilo Sage

If you are wanting to create a Catalog Task [sc_task] record from a Workflow Activity using the Advanced script options, then you can use the following syntax:



task.description += 'RITM Number: ' + current.number;



Since the workflow is running from the Requested Item [sc_req_item] table, all you need is the number from that current record.



I hope this is helpful.


View solution in original post

13 REPLIES 13

what is the difference between a business rule and an script in the workflow activity?


Why did you use parent?


ccajohnson
Kilo Sage

If you are wanting to create a Catalog Task [sc_task] record from a Workflow Activity using the Advanced script options, then you can use the following syntax:



task.description += 'RITM Number: ' + current.number;



Since the workflow is running from the Requested Item [sc_req_item] table, all you need is the number from that current record.



I hope this is helpful.


It worked!! thank you so much. How do you know which syntax to use for the different tables?