Original Message:
Sent: 04-05-2023 11:18
From: Velmani Natarajan
Subject: Get contacts from a contact list using API
Hi Muhammad,
Thank you so much for your response. Yes, I can pull the contact by providing the contact ID. However, In our workflow, we don't know the Contact ID to query.
We are inserting contacts into a call list from Dynamics using the API "
POST
/api/v2/outbound/contactlists/{contactListId}/contacts"
This contact list is for a Digital SMS campaign.
After the SMS is sent out, we want to write back the results to Dynamics.
I cannot call any data action from an SMS campaign to write back the results. Also, we do know the Contact IDs when we insert a contact into the contact list.
Is it possible to pull the Wrap-Codes by providing a data/ time in the body of the API POST /api/v2/outbound/contactlists/{contactListId}/contacts/bulk .
or by providing another value in the contact list other than Contact ID.
------------------------------
Velmani Natarajan
MVP Health Plan, Inc.
Original Message:
Sent: 04-04-2023 15:55
From: Muhammad Zubair Awan
Subject: Get contacts from a contact list using API
You need to provide a valid contact ID to pull the record.
PS: if you need to pull all contacts in the contact list, its easier to use CSV export option under List Management > Contact Lists > <Name> > Export
Cheers
------------------------------
Muhammad Zubair Awan
Original Message:
Sent: 04-03-2023 15:57
From: Velmani Natarajan
Subject: Get contacts from a contact list using API
I am trying to get list of contacts inside a contact list using the following API
POST /api/v2/outbound/contactlists/{contactListId}/contacts/bulk
I don't know what to be inputted in the "Request Body" as a parameter.
Below is the screenshot of my query and response.
I get 200 OK response, but no contacts are listed.
Can you please help me pull all contacts in the contact list.
Appreciate your help.


#Outbound
------------------------------
Velmani Natarajan
MVP Health Plan, Inc.
------------------------------