We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Use the catalog item select box choices as input to decision table?

gjz
Mega Sage

I want to use a decision table in my flow to determine what catalog tasks (and their assignment group) should be created based on the data that was selected when a request is submitted.

 

The catalog item uses a select box to determine the "action" to take, I want to use these choices as the input to the decision table but I don't know what table they are in so I can use them as the input choice list in a decision.  Ok, I admit this is confusing.

 

On the catalog item, the Action variable is a select box and these are the choices:

gjz_0-1697134577651.png

 

In the decision table, I want to use the question choices as the input and reference the variable choices so I don't have to maintain them in two separate areas.  What table to I select?  How can I be assured the correct list is selected since I only see one field as an option?  There is more than one catalog item variable named "Action".

gjz_1-1697134823313.png

 

 

 

 

8 REPLIES 8

Ram050670
Tera Guru

@gjz 

so the variable select box options are selected and you want to set catalog task and Assignment group based on those Options selected? 

Yes, essentially I need some way to accomplish the following.  It was so much easier in workflow with the Switch statement!

 

ConditionResult
Action = Add user or Remove UserTeam A, Team B, Team C, Team D, Team E
Action = Change UserTeam B, Team E
Action = Add mobile app only or Remove mobile app onlyTeam C

 

in that case why dont you use multiple If conditions (Flow logic) and validate each option i know this can be long but easer to do that.

 

try 1st If condition met 1st option and if true create task or validate for the second option 

5 option 5if conditions.

 

hope this is helpful

 

 

It's an option and one I already tried.  I ended up duplicating catalog tasks and it's messy to read.  It's also difficult to get it correct when the tasks have to run in parallel.