Pass variable from catalog item to requested item

steveturley2
Giga Expert

Hi, I imagine this is a bit basic, so apologies.

I have an catalog item that prompts for a variable to be entered before submission. This references the 'Configuration Item' field.

How can I pass the value selected into the 'Configuration Item' field on the subsequent Requested Item?

Thanks!

3 REPLIES 3

ServiceNow SA
Kilo Guru

I guess, it automatically get passed in the RITM.


lSurya 24
Giga Guru

When you submit the catalog item, it will create a record and whatever the data you entered will be in the variable editor on requested item form.



And you can access variable data from the variable editor on the request item form by current.variables.fieldname


Get Variable Value from Variable Editor on Catalog Task


Variable Editor


Sharique Azim
Kilo Sage

Hi Steve,



If you are   planning to set the field, then you need to


1.create workflow, add a block run script between   the start ,wait for condition(and other relevant blocks) and end.


In the run script,   set the field   by using the line current.field_name = current.variables.variable_name ;//which contains the value on the catalog item


2. Use business rule- display , to set the value like current.field_name = current.variables.variable_name