Put name in outbound Email from ServiceCat form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 07:50 AM
I have a servicecatalog form that captures a name by picking from sys.user.
I need to put that name into a task Email.
I have these steps in my flow - when the Email is produced from the second step, the name come out in long code
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 08:48 AM - edited 08-07-2024 08:51 AM
If you are familiar with flow designer scripting, you could use below script on task description field. You basically need to use getDisplayValue() method to get display value of the name shown instead of sys_id
var name = fd_data.trigger.request_item.variables.<variable_name_of_the_name_field>.getDisplayValue();
var reg = fd_data.trigger.request_item.variables.<variable_name_of_the_name_field>;
// repeat this as long as you need for other variables to be shown on task description field
return name + \n + region;
// use "+" add more variable information on description and "/n" for having new line on description field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 10:53 AM
Thanks, so where would the script be put?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 11:04 AM
Please click on </> button which opens up script editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 11:56 PM
Hi - i have added the code to the script editor
do i need to change the decsription code already in place?