- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 10:17 AM
Help with flow designer script:
I call this script in the worknotes of a catalog task in flow designer.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 10:32 AM - edited 11-24-2023 10:35 AM
Hi @Thomas99,
Try this updated scripts and let me know.
var ritmSysId = fd_data.trigger.request_item.sys_id;
var rec = new GlideRecord('sc_req_item');
rec.get(ritmSysId);
var cityName = rec.variables.u_city.getDisplayValue();
var buildingName = rec.variables.building.getDisplayValue();
return "City:" + cityName + "\n" + "Building:" + buildingName;
If my response helps you resolve your issue. Kindly mark it as helpful & correct. It will be helpful to future readers! 👍🏻
Thanks,
Sagar Pagar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 10:51 AM
@Thomas99 Here is the updated script.
var ritmSysId = fd_data.trigger.request_item.sys_id;
var rec = new GlideRecord('sc_req_item');
rec.get(ritmSysId);
var variableDisplayValue = rec.variables.building.getDisplayValue();
var cityDisplayValue = rec.variables.u_city.getDisplayValue();
return "City: " + cityDisplayValue+"Building: " + variableDisplayValue;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 10:32 AM - edited 11-24-2023 10:35 AM
Hi @Thomas99,
Try this updated scripts and let me know.
var ritmSysId = fd_data.trigger.request_item.sys_id;
var rec = new GlideRecord('sc_req_item');
rec.get(ritmSysId);
var cityName = rec.variables.u_city.getDisplayValue();
var buildingName = rec.variables.building.getDisplayValue();
return "City:" + cityName + "\n" + "Building:" + buildingName;
If my response helps you resolve your issue. Kindly mark it as helpful & correct. It will be helpful to future readers! 👍🏻
Thanks,
Sagar Pagar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 10:51 AM
@Thomas99 Here is the updated script.
var ritmSysId = fd_data.trigger.request_item.sys_id;
var rec = new GlideRecord('sc_req_item');
rec.get(ritmSysId);
var variableDisplayValue = rec.variables.building.getDisplayValue();
var cityDisplayValue = rec.variables.u_city.getDisplayValue();
return "City: " + cityDisplayValue+"Building: " + variableDisplayValue;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 10:47 AM
Thanks guys! It worked