
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2022 03:32 PM
Hi Folks,
I'm building a flow for a catalog item and looking to append to the short description of the catalog task that is being created based on the type request submitted.
I have a few 'IF' steps in the flow to append '- Data', '- Voice', '- Equipment' to the short description depending on what the customer checked on the form.
The issue I'm having is when using the data pills to perform this only the last IF step is taken into account as Flow doesn't seem to look at the current short description and add to it, but instead just takes into account the field at the 'Create Catalog Item' step which is Campus-Building.
For example, if the customer submits the form with Data and Voice ticked, then the short description should be:
Campus-Building-Data-Voice
But instead, I'm getting:
Campus-Building-Voice
Is this possible to do using the data pills or is there script instead that is required?
Thanks!
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2022 03:54 PM
Hi,
If you want to to use data pill you should consider all the combination of the selection like below
If(Data ticked && Voice ticked && Equipment ticked )
Campus-Building-Data-Voice-Equipment
else if (Data ticked && Voice ticked)
Campus-Building-Data-Voice
else if (Voice ticked && Equipment ticked)
Campus-Building-Voice-Equipment
else if (Data ticked && Equipment ticked)
Campus-Building-Data-Equipment
else if(Data ticked )
Campus-Building-Data
else if(Voice ticked )
Campus-Building-Voice
else if(Equipment ticked )
Campus-Building-Equipment
But through script it is really easy to return like below
var sd="Campus-Building";
if(Data ticked )
sd+="-Data"
if(Voice ticked )
sd+="-Voice "
if(Equipment ticked )
sd+="-Equipment "
return sd;
Above code is just pseudo code. You should do it with proper syntax.
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
Regards,
Saurabh
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2022 03:54 PM
Hi,
If you want to to use data pill you should consider all the combination of the selection like below
If(Data ticked && Voice ticked && Equipment ticked )
Campus-Building-Data-Voice-Equipment
else if (Data ticked && Voice ticked)
Campus-Building-Data-Voice
else if (Voice ticked && Equipment ticked)
Campus-Building-Voice-Equipment
else if (Data ticked && Equipment ticked)
Campus-Building-Data-Equipment
else if(Data ticked )
Campus-Building-Data
else if(Voice ticked )
Campus-Building-Voice
else if(Equipment ticked )
Campus-Building-Equipment
But through script it is really easy to return like below
var sd="Campus-Building";
if(Data ticked )
sd+="-Data"
if(Voice ticked )
sd+="-Voice "
if(Equipment ticked )
sd+="-Equipment "
return sd;
Above code is just pseudo code. You should do it with proper syntax.
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
Regards,
Saurabh
Thanks and Regards,
Saurabh Gupta