Filter phone number label after Iterator

Hello make lovers,

I have created an automation to send SMS from my Pipedrive CRM. The simplest situation is when the contact only has a cell phone number. Of course, there are also contacts with office and private numbers. I use the Iterator, module [6], so that the automation only sends SMS to phone numbers that have the label “mobile”. How can I change the filters / scenario so that:

  1. if a number with the label “mobile” is found, only this number should be
    number should be processed (path 1).
  2. if there is no number with the label “mobile”, the fallback
    fallback (path 2) is used to create a note.
  3. only the first matching number with “mobile” is used, even if there are several
    if there are several.

Looking forward to your support and have a nice week.

Best,
Alexander

Hi @SpeedyAlex
You can use the array functions to get the first mobile number and process the next steps of your flow.


Just copy/paste this function to your scenario and replace the Phone array with your array.
{{first(map(19.phone; “value”; “label”; “mobile”))}}

3 Likes

Thanks for the easy and quick reply & solution. :grin: :partying_face:

2 Likes