This has taken me way to long to figure out, so I figured I’d ask here.
I have a backend workflow as this is triggered from a webhook. I need to get data from another API. This is going to give me a list of contacts. I need to take that list and then make a call to the Dialpad API to send out SMS messages. The issue I can’t get past is, the requested data may return contacts that use the same phone number, which is inside of an array.
I can sort of get this to work by only creating a record if the phone number doesn’t already exist, and then inside the same workflow send the SMS only if the record was created. The issue I have is if I try later to send an SMS to the same number from another call. I can’t figure out how I would differentiate the already existing record from the new record.
I think I need a second opinion on this at this point as to the best practice. Ideally I would like to be able to do the API request, remove the duplicate, send the SMS and be done with it without having to create a record for each, but I don’t think that’s possible.