How to populate assignment group using Flow Designer f(x) script?

Erica2
Tera Contributor

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

find_real_file.png

1 ACCEPTED SOLUTION

-O-
Kilo Patron
Kilo Patron

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:

find_real_file.png

AAnd the condition:

find_real_file.pngThen use it in the flow:

find_real_file.png

Using a Catalog Item variable as below:

find_real_file.png

And finally update the assignment group:

find_real_file.png

View solution in original post

25 REPLIES 25

Erica2
Tera Contributor

Hi János

This is very interesting way of doing it.  Could you please share the update set so that I can try it out in my test instance and also take a look at how you putted it together in the flow?

Thanks

Yes, but It will take a bit. Like by tomorrow.

Erica2
Tera Contributor
János
 
I was able to figured it out your suggestion solution and it works really well. However, I'm having trouble adding more decision branches.  Let say, add a few more branches after Database. 
 
 

find_real_file.png

I think a better and more scalable solution would be to not use branches at all:

find_real_file.png

In this case the flow looks simpler too:

find_real_file.png

You will still be able to set the Assignment group as before:

find_real_file.png

But you will never have to touch the flow again just to add another assignment option. You would only need to modify the Decision Table by adding new Decision answers. Only thing you should make sure is to have a single default last answer.

Erica2
Tera Contributor
János
 
I figured it out how to add additional decision branches. 

We created a Decision Table.  Will there be a problem when upgrading to the latest SN version?