- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2024 03:02 AM
I am creating an custom flow action... I am sending inputs from catalog of variable for eg 'Device Name' have 2 choices one is Laptop (lap) and Desktop (desk) its like label and its backend name nd i want Device Name input into custom action and will return according to the Device Name input so tell me now when i will call the action from Flow Desginer and give input drag and drop Device Name it will send backend name or display value so i can run script in custom action like if(inputs.device == lap) or if(inputs.device == Laptop)??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2024 05:07 AM - edited ‎12-03-2024 06:02 AM
Hello @indrajeetma
To get the value from flow designer use the condition
var name = fd_data.trigger.request_item.variables.device_name; //to return backend value(lap,desk)
return name;
or
var name = fd_data.trigger.request_item.variables.device_name.getDisplayValue(); // to return display value (Laptop, Desktop)
return name;
Result:
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps others find the solution more easily and supports the community!"
Thank You
Juhi Poddar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2024 04:11 AM
@indrajeetma The backend value will be sent in the script action if(inputs.device == lap)
Hope this answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2024 04:26 AM
How i can send the label value as input?
getting null as output.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2024 04:49 AM
@indrajeetma Here is the support article on the same issue https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0960074
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2024 05:07 AM - edited ‎12-03-2024 06:02 AM
Hello @indrajeetma
To get the value from flow designer use the condition
var name = fd_data.trigger.request_item.variables.device_name; //to return backend value(lap,desk)
return name;
or
var name = fd_data.trigger.request_item.variables.device_name.getDisplayValue(); // to return display value (Laptop, Desktop)
return name;
Result:
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps others find the solution more easily and supports the community!"
Thank You
Juhi Poddar