assign a value of 1 variable to other in the same catalog item at the time of creation on sc_task

GD11
Tera Expert

I want to assign a value of variable from the form being submitted on portal to another variable on hte same catalog item (hidden variable) . i haev created before BR that doesn't capture the value at time creation , it says undefined. this BR works fine for update but i want ot make it work for create as well. dependent value also doesn;t work becasue i need to assing the free text value being submitted from same catalog item form and not referencing to any table. (we have multiple such cases)

 

GD11_1-1737565524829.png

 

 

GD11_0-1737565493441.png

GD11_0-1737565792462.png

 

1 ACCEPTED SOLUTION

Try with current.request_item.variables... in the assignment line as well.  You could also move this prior to  the task creation activity, since the same variables and values are available to the RITM record and Catalog Task records.

View solution in original post

6 REPLIES 6

NagaChandaE
Tera Guru

try with After insert Business rule.

after BR is not useful because ther is flow and trigger for that is created or updated on the sc task to send details as soon as it is created to other 3rd party

Brad Bowman
Kilo Patron
Kilo Patron

If this BR is running on the sc_task table, try instead referencing the variables from current.request_item.variables..., or current.parent.variables... - depending on which field is populated with the RITM in your instance.

  tried that it shows correctly in the log but not on the UI. use case - we want to send teh data as soon as it is created throug other 3rd party which is invoked through flow. so we need to correct value at the time of creation itself as the condition on the flow trigger is sc_task created or updated

 

GD11_0-1737567343055.png

GD11_1-1737567476984.png

 

GD11_2-1737567517755.png