'ios shortcuts : Extract dictionnary key from choose list

I have a dictionary as an entry for a list of choices :

Input dictionnary

I can select the desired item from the list but I don't know how to extract its key ? Actually, when I select an item it just returns the title.

Select list from dictionnary

Thanks for your help



Solution 1:[1]

You can select "key" for the variable method, and put a Get Item from List block below it.

[Siri Shortcuts

With this it will return 2345.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 karel