I am trying to write a workflow that is very agile, and that can be changed by just updating a sql table. So for each type of document that comes in I want to run a query matching x, and from that get the list of fields that I should grab into 4 different variables that I can then use later. but those fields will be different depending on the template of this document.
Is there a way to do this, or is my only option SQL?
I know in a condition I can call a field value directly without having to use get field values first, but I can't find a way outside a condition to do it.