- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2020 09:00 AM
I would like to add variables to the Description field of "Create Catalog Task" in Flow Designer. I know the variables are available and can be selected using the Catalog Variables selection box. But for readability purposes, I would like this information in the Description field of the catalog task. Some of the fields display correctly while other are showing the sysid. Is it possible to get the display values in the Description field?
This is the description field in flow designer
This is the description field in the catalog task
Thanks for your help.
Solved! Go to Solution.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2020 07:22 AM
it should be this
I assume you must be already having Get Catalog Variables Action before this
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2020 09:11 AM
Hi,
you will have to use script for this using the f(x) for the short description
something like this
var values = '';
var sysId = fd_data.trigger.current.sys_id;
var gr = new GlideRecord('sc_req_item');
gr.addQuery('sys_id', sysId);
gr.query();
if(gr.next()){
var variables = gr.variables.getElements();
for (var i=0;i<variables.length;i++) {
var question = variables[i].getQuestion();
values = values + question.getLabel() + ":" + question.getDisplayValue() + '\n';
}
return values;
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2020 09:16 AM
This is for the Description field, not Short Description. Is the principle still the same? I am not sure how to include all the fields I want. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2020 09:38 PM
the concept still remains the same
just select the description field instead of short description
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2020 09:41 PM