How can I use Decision Tables in my Workflows? - Top 5 Tips
hi my name is Julia pris and I'm a principal product manager with the workflow automation team and today we're going to talk about decision tables one of the questions we commonly encounter is how can I use decision tables in my workflows first let's talk about how decision tables interact with workflows decision tables capture reusable logic in an intuitive interface to use a decision table must be called from a flow or a script the calling Source passes data to the decision table input variables and specifies how to run the rules the decision table returns result values that can then be used in workflows we'll first talk about how to use a decision table in a flow or subflow if you are using flows in your instance I would recommend going this route as it requires absolutely no scripting to use a decision table in a flow or subflow you will add the the make a decision logic to your flow you'll configure that logic by selecting the decision table set the parameters including the execution and whether you want to use branching in your flow based on the decision results and you will map data to inputs as you can see here with the incident input you can map any data that comes from prior steps in your flow into the decision table inputs once you've set up the make a decision flow logic in your flow you can then use decision table results in subsequent actions in this case the assignment group field on an incident ENT is being dynamically updated by the assignment group returned by a decision table in a previous step you can also use decision table results to Branch your flow in multiple paths branching is appropriate when you want your flow to take different subsequent actions depending on the result of a decision table branching is not the way to go if you want to follow the same path for your flow but want to use the decision table results to set values in subsequent steps like we did here with the assignment group next we'll talk about using a decision table in a script starting in Washington we offer a feature to generate a code snippet to execute a decision table from any published or non-versioned decision table you can create a code snippet that will use the specific inputs ID and result Columns of that decision table to generate a script for either execution method as you can see here you can create a code snippet that will return the first decision that matches and you can also create a code snippet that will return all decisions that match that includes a for Loop prior to Washington you can still generate these code Snippets you will just use the API documentation for the get decision or get decisions apis to write your code the code Snippets can be used across the platform you'll see an example here using a decision table to power Dynamic email content in an email script you could also consider using decision tables for business rules assignment rules Dynamic email content inbound email actions and many many more examples we look forward to hearing how you're using decision tables to power your scripts and your flows and streamline your application code thank you for your time I hope this answered the question how can I use decision tables in my workflows
https://www.youtube.com/watch?v=6zUn7U_4Ydg