- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2024 12:11 AM
Hello!
I have an issue with a choice type variable of a Catalog Item. the variable is named business_need and have 2 options that the user can select. The Catalog Item has a flow with the Get Catalog Variable action (I fetch all the custom variables of the said CI) followed by a Send Email Action that must contain some of the variables selected or typed in by the Caller. The problem is that, when I try and fetch the selection the user has made in the corresponding ticket of the business_need variable, the Data returned is the value of the choice NOT the Text of the choice.
Is there a way to, maybe, dot walk the business_need.text? I'm trying to keep a no code approach to it, it is possible?
Thank you in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2024 03:11 AM
Hi @Stergios Stergi ,
Ah okay.Thanks for this info. In that case using script only last option as per my knowledge.
Try with below line of code if it works.
${current.variables.business_need.getDisplayValue()}
Kindly mark helpful/accepted if it helps
Regards,
Priyanka Salunke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2024 12:55 AM
Hi @Stergios Stergi , In my opinion, It is defect. Ideally it should work same as in regular notifications. I think you should raise HI case and check with ServiceNowfor this . I don't think dot walk work here as this is choice field.(Not Reference type) However there is another way around to achieve this with no code.
1. Create separate notification based on your ask from System Notifications- email- notifications module. (here you will not get this issue for choice field. It is drag and drop in what will contain section)
2. Select when to send as Triggered- (Means it will be called though your flow action.)
3. In Flow, instead of send email, use send notification step where you can pass your notification.
Hope it helps. Kindly mark helpful/accepted if it helps you.
Regards,
Priyanka Salunke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2024 01:06 AM
Hello @Priyanka_786 !
Thank you very much for your reply, I think the email notification will not work, as the business_need is a custom variable and custom vars are not available to pick in the email notification Subject or Body...
See attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2024 03:11 AM
Hi @Stergios Stergi ,
Ah okay.Thanks for this info. In that case using script only last option as per my knowledge.
Try with below line of code if it works.
${current.variables.business_need.getDisplayValue()}
Kindly mark helpful/accepted if it helps
Regards,
Priyanka Salunke