- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018 03:40 AM
Hello!
I have a catalog item workflow that needs to populate the short_description field. The script is:
task.short_description = "This is a request for " + current.request.requested_for.toString();
However this is not working. The fields (ex. Requested_for) is populated from an integration with another application.
The requested_for field is populated correctly but I am unable to extract and use it in the task's short description.
Please help!
Thank you.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018 03:43 AM
Also note that the workflow timings of the request/request item generation are kind of strange. If you're doing this right at the very beginning of your workflow, try putting in a 5 second timer right before to allow enough wait time for the request and item to be created and linked fully before this step.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018 03:42 AM
'current.request.requested_for.getDisplayValue()' should work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018 03:43 AM
Also note that the workflow timings of the request/request item generation are kind of strange. If you're doing this right at the very beginning of your workflow, try putting in a 5 second timer right before to allow enough wait time for the request and item to be created and linked fully before this step.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2020 01:22 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2020 02:15 PM
Just access the 'variables' object like any other field, followed by the name of your variable...
current.request_item.variables.<yourvarnamehere>.getDisplayValue();