Populate a field using input from catalog item

Alon Grod
Tera Expert

Hi,

 

When a client using the portal and request something using one of the catalog items, he needs fill a variable called 'Service' which is reference to cmdb_ci_service. After submitting the request using the portal, a RITM is created in sc_req_item table. How can I populate the actual field 'service' in sc_req_item table using the input of the variable 'service' ?

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi,

 

You have to copy the Service catalog variables values into Service field/columns on Request item [sc_req_item] form.

Workflow:

Sample scripts to use in workflow run-script activity.

current.service_field = current.variables.service_variable_name;

 

Flows:

If you are using flow, then use the Update Record action flow activity. drag-drop the current record using data pill or picker, select the table as Requested item and set Service in field values and select the Service variable using data pill.

 

Thanks,

Sagar Pagar

 

 

The world works with ServiceNow

View solution in original post

1 REPLY 1

Sagar Pagar
Tera Patron

Hi,

 

You have to copy the Service catalog variables values into Service field/columns on Request item [sc_req_item] form.

Workflow:

Sample scripts to use in workflow run-script activity.

current.service_field = current.variables.service_variable_name;

 

Flows:

If you are using flow, then use the Update Record action flow activity. drag-drop the current record using data pill or picker, select the table as Requested item and set Service in field values and select the Service variable using data pill.

 

Thanks,

Sagar Pagar

 

 

The world works with ServiceNow