macOS
![](https://help.apple.com/assets/645D5D228BE0233D28263F4B/645D5D248BE0233D28263F53/en_US/fbd8d40651fff19a46e7aaedd4cb1b09.png)
Handling dictionaries using the Get Dictionary Value action in Shortcuts on Mac
To get the value for a particular key in a dictionary, you can use the Get Dictionary Value action and specify the name of the key. To get an object’s phone value, add the Get Dictionary Value action and set it to phone
.
![Get Dictionary Value action in the shortcut editor with the key set to phone.](https://help.apple.com/assets/645D5D228BE0233D28263F4B/645D5D248BE0233D28263F53/en_US/4ee47c599ba700337d6f6c56417e116c.png)
If you want the company name, you can use the dot notation company.name
, as shown in the screenshot below.
![Get Dictionary Value action in the shortcut editor with the key set to company.name.](https://help.apple.com/assets/645D5D228BE0233D28263F4B/645D5D248BE0233D28263F53/en_US/824e9a228d1fbda289e91fa7157434f8.png)
The latitude and longitude for each object is stored in address
as a dictionary called geo
, as shown in the screenshot below. Using dot notation, you can access data nested multiple levels deep in a dictionary.
![Get Dictionary Value action in the shortcut editor with the key set to address.geo.lat.](https://help.apple.com/assets/645D5D228BE0233D28263F4B/645D5D248BE0233D28263F53/en_US/154480361800c91814fa80186797e325.png)
For information on working with multiple items in a dictionary, see Handling lists in Shortcuts on Mac.