I would like to set a variable "Clinic" to User Prompt with a list of "Clinic A|Clinic B|Clinic C".
In another Macro, I would like to have a user prompt to set the Clinic Variable to refer to the Clinic list from the first macro and choose from the list. Thus, instead of recreating the list of clinics of each macro, I would like new macros to refer to the Clinic variable that is somehow set globally (with a user prompt to choose).
All KM Variables are global by default, unless the variable name starts with either "Local" or "Instance".
So, all you need to do is set two global variables:
DND__Clinic_List -- list of clinics to choose from
DND__Clinic -- the chosen clinic
I use "DND__" as a prefix to denote KM Variables you "Do Not Delete". The double underscore results in only the text after the underscores to appear in KM Prompt Actions.
So, in each macro, you have this:
Below is just an example written in response to your request. You will need to use as an example and/or change to meet your workflow automation needs.
Thank you very much for the macro. It works but I am confused about this step. Your are setting the variable "DND__Clinic" to |%Variable%DND__Clinic%|%Local__Clinic_List%
"DND__Clinic" is set to "DND__Clinic" ? I don't follow the logic. Please explain.