0

We have an automated process of importing updated (changed) phone numbers. We add them through the import process and assign priority "1". We want to ensure that import is successful through validation process. Unfortunately, I have not found an appropriate API request to return MobileConnect phone priority. Do you have any suggestions?

2
  • I don't think there is an API route that could do this efficiently, if at all. Does this have to be an API route you're looking for? Could you not use an SQL Query in Automation Studio?
    – Macca
    Commented Aug 12, 2020 at 10:28
  • @Macca it's not critical limitation to use API for that. As I understand you suggest using Data Views for validation but would it be possible to validate based on contactKey? Commented Aug 12, 2020 at 12:46

1 Answer 1

2

There's no API Route that I'm aware of that lets you get this data out in an efficient manner.

The _MobileAddress data view allows you to pull all address records in MobileConnect irrespective of their priority, though. By default, the data view doesn't contain the SubscriberKey, but it does contain any MobileConnect Demographic fields you've created. The trick is to ensure you create a MobileConnect Demographic Field to hold your SubscriberKeys for each contact and include this field in your import defintion each time you perform your import of new/updated contacts. You can then include it in the data you retrieve from _MobileAddress.

Here's an example of querying the Data View pulling all address records along with their SubscriberKey imported into a custom demographic field called "UUID".

SELECT
    UUID AS SubscriberKey,
    _ContactID AS ContactID,
    _MobileNumber AS MobileNumber,
    _Status AS Status,
    _Priority AS Priority
FROM 
    _MobileAddress WITH (NOLOCK)
1
  • Thank you for this suggestion. Interesting solution. It's very likely that I would decide to go this way. Commented Aug 13, 2020 at 8:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .