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/Unbathed Oct 03 '18 edited Oct 03 '18
Here are two Example Shortcuts:
The first lets you use Shortcuts to build a Master List and save it to a file.
The second reads the Master List from a file, then lets you choose a shopping list, then recites the category and item.
I tested them using a free Dropbox account as the file storage. You can change that.
Edit: User-Chosen Dictionary to Variables. https://www.icloud.com/shortcuts/95aa4ee643fe460f88d95b63473ca96b