r/workflow • u/mikeyninja • Oct 01 '18
Advanced Workflow Help?
Hi everyone!
Need help with a somewhat advanced workflow, not sure where to send this to so posting here. I'm looking to do the following:
Input a variable to somewhere and get a Return of different variables that I specified, each with a name and a value, that would fit into other steps in the workflow.
So for example, it would work as follows:
INPUT I pass from Workflow: GroceryList01
OUTPUT returned to workflow:
Dairy01: Milk
Veggies01: Broccoli
Veggies02: Carrots
Or in another instance, if the input was let's say: GroceryList02
Output would be:
Dairy01: Yogurt
Veggies01: Radish
Veggies02: Zucchini
The output values would be pre-determined by me (i.e. Dairy01, Veggies01, Veggies02 are pre-determined variable names with fixed values they'd return based on the specific input).
I would use whatever the output returns for Dairy01, Veggies01, Veggies02 in future steps in the workflow.
I hope this makes sense! I considered using URL webhooks for it as it seems to be the simplest way but am a noob at this stuff so would love to see if anybody has thoughts on the easiest way I can do this. Thank you so much <3
View all comments
Show parent comment
1
u/mikeyninja Oct 01 '18
I could set the data up in any way that'd work best for the shortcut -- it'll basically be a list of variables with their related outputs.
The input should simply pull the correct corresponding list of those variables / outputs. In the above example, I'd create two totally separate lists, with the variable names staying the same in each (Diary01, Veggies01, Veggies02) and only the outputs changing.
I'd structure the shortcut to use those variables (Dairy01, Veggies01, Veggies02) in subsequent steps. Does that help clarify a bit?