We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to populate task short description based on the catalog variable choice

Gagandeep
Tera Contributor

I want to populate the task short description based on the choice value of the catalog item variable in a Flow Designer. Please guide

13 REPLIES 13

sachin_namjoshi
Kilo Patron

You need to use get catalog variable flow designer action to get catalog variable value and then use update record action.

 

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/flow-designer/reference/get-cat-variables-flow-designer.html

 

 

 

Regards,

Sachin

This is about populating the short description in the task based on choice selected for a variable 

This is not something as per my requirement. I want the task description to get populated based on variable drop down choice selected

Jacob Nan
Tera Guru

I often do this in the workflow by including a "run script" variable.

var sDesc =  "Fix: " + current.variables.vehicle_number;

current.short_description = sDesc;
var gr = new GlideRecord('sc_request');
gr.addQuery('sys_id',current.request);
gr.query();

if(gr.next()){
	gr.short_description = sDesc;
	gr.update();
}