Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2021 04:51 AM
I have a catalog item in that i have a multiple choice variable , i need to get the value from this variable and need to show this in cmdb resource group table in environment choice field.
How can i achieve this? Thanks in advance.
Solved! Go to Solution.
Labels:
- Labels:
-
flow designer
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2021 10:29 PM
then use inline script and use if else
get the catalog variable value and compare it and return the correct choice value for that field
Regards
Ankur
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
15 REPLIES 15
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2021 06:20 AM
var env = fd_data.subflow_inputs.sh_srvc_tier;
if(env == 'sh_Production'){
return 'Production';
}
else if(env == 'sh_Acceptance'){
return'Acceptance';
}
else if(env == 'sh_Development'){
return'Development';
}
else if(env == 'sh_Test'){
return'Test';
}
I have tried, this script