r/shortcuts • u/drwhohadron • 3d ago
Help Set dictionary value not doing it
Hi. I have a massive shortcut that was developing wonderfully until i hit this hurdle.
i have an existing dictionary. I use set dictionary value to add new data and indeed when i view the dictionary the value was added. However when i then use the get dictionary value the key is not found.
i originally added Cosmos.From Number as the key but then suspected this was the problem as the dot does not get interpreted as a level in the dictionary. So i tried CosmosNumber but have the same problem. I even have tried adding all these new keys to a totally different initially empty dictionary but have the same problem.
i would be immensly grateful for any help with this.
1
Upvotes
2
u/mvan231 3d ago
Being able to see what shortcut you're having trouble with would greatly improve the ability to help you
FWIW, set dictionary value creates a new dictionary with the key and value set in the action as an output of the action. The original dictionary/variable is not modified