- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2021 10:23 AM
Hi,
I need help on how to populate assignment group based on user select dropdown variable value that contains pacific word using Flow Designer f(x) script.
This is what I have, but it did not work. Can someone please provide suggestion. Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2021 12:06 PM
If using Flow anyway, why not use Decision Tables? You can then create a completely code free solution.
Define the decision table that accepts a text input to use in the condition:
AAnd the condition:
Then use it in the flow:
Using a Catalog Item variable as below:
And finally update the assignment group:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2021 10:32 AM
Did you add log to check either its going inside if block or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2021 11:01 AM
How do you add log to check. I have never done it. Could you help?
For testing purposes. Here is my f(x), but it did not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2021 11:02 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2021 11:05 AM
Added logs please check now.
var av ='';
var TeamName = 'Outlook App';
gs.log('index of check '+ TeamName.indexOf('Outlook'));
if(TeamName.indexOf('Outlook') == -1){
gs.log('Value inside if ');
av += 'IT Service Desk Team';
}
return av;