​ Contact_Info crashes if phone number is unknown

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
LWinkler
Posts: 4
Joined: 18 Jan 2018 11:25

​ Contact_Info crashes if phone number is unknown

Post by LWinkler » 18 Jan 2018 17:58

​Hi,

trying to make a flow thats returns the display_name of a contact from a given phone number.
The action „Init Variables Contact Info“ works fine with SEARCH TYPE=Phone number and SERACH VALUE=Phone number that exists in Contacts.
But if SEARCH VALUE contains an unknown number the execution of the flow aborts with a „No contact found“ error.
Is there a way to trap this error so that the flow continues?

Best,
Lutz

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: ​ Contact_Info crashes if phone number is unknown

Post by Martin » 18 Jan 2018 18:03

Hi,

You can catch exceptions in flows like this:
-attach an action to the action that throws the error (by dragging the plus-icon to a free area and selecting an action of your choice)
-select the connection between the first and the second action
-click the edit icon of the connection
-switch the connection type to Exception

Such an exception-connection is only executed when the first action throws an error but not when the first action is executed normally/successfully.

Regards,
Martin

LWinkler
Posts: 4
Joined: 18 Jan 2018 11:25

Re: ​ Contact_Info crashes if phone number is unknown

Post by LWinkler » 20 Jan 2018 17:32

That worked. Thank you!!!

Post Reply