- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2022 11:26 PM
Hello!
I've recently started using the Flow Designer to create workflow for our Catalog Items.
In the traditional workflow, customizing the Short Description is shown below.
task.short_description = current.variables.variable1 + " - " + current.requested_for;
In Flow Designer, I tried the below but it does not work.
var shortDesc = fd_data.trigger.request_item.variables.variable1 + ' - ' + fd_data.trigger.request_item.requested_for;
return shortDesc;
Please help!
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2022 12:26 AM
Hi
it is not necessary to script something.
You just can do this by pulling the respective data pills into the Short Description in an "Update Record" action.
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2022 12:26 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2022 01:20 AM
Hi,
Like Maik said, no scripting is required in this case.
Watch this video from Robert Fedoruk to get an example on how to combine fields without scripting. (you can fast forward to 6:30 if you like)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-19-2022 12:17 AM
This worked. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2022 12:43 AM
Hi,
use this
1) use Get Catalog Variables action and include those variables
2) then use that in script by dot walking
3) also requested_for field is on REQ and not RITM
Something like this
var shortDesc = fd_data._1__get_catalog_variables.variable1 + ' - ' + fd_data.trigger.request_item.requested.requested_for.name;
return shortDesc;
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader