I have a custom code block in a Data Directive BPM Workflow. I have Variables that I set after true Conditions and need to access these variable in a Custom Code Block that I send emails in to format the Email body text.
You can directly access any variables you have already defined outside the code block (in a “set argument/variable” for example) in any code block. If you right click inside the custom code window, you’ll see a “Variables” drop-down menu that lists the variables you already have defined in the BPM. You can also just type them in by name.