by Fran T
Version 2 (October 1, 2024)
Download (33 downloads)
A subroutine which allows a list of contact phone numbers to be created and managed.
The selected phone numbers are returned from the subroutine in a dictionary named selectedPhoneNumbers whose keys are the display names of the contacts and values are their selected phone number(s) and types. The listManagerTitle variable can optionally be set to provide a title for the dialogs.
The 'Selected Phone Numbers' flow is provided as an example for a "Show Settings" flow of your own, and the 'Lookup' flow demonstrates how you can look up phone number selections by name or number. The 'Show Data' flow logs the underlying data structure so you can see it in detail.
To ensure that phone numbers can be matched regardless of formatting, the selected phone numbers are saved in "normalized" format, where any non-digits have been removed and keypad letters are converted to digits. To look them up in the list later, normalize the phone number given by its source using the phoneFormat() function. For example:
phoneFormat(callerPhoneNumber, "normalize").
Also see:
List Manager: Apps
https://llamalab.com/automate/community/flows/44151
List Manager: Automate Flows
https://llamalab.com/automate/community/flows/44152
List Manager: Bluetooth Devices
https://llamalab.com/automate/community/flows/44153
List Manager: Calendars
https://llamalab.com/automate/community/flows/44154
List Manager: Contacts
https://llamalab.com/automate/community/flows/44155
List Manager: Wi-Fi Networks
https://llamalab.com/automate/community/flows/44156