Qualtrics Survey Send API Issue with new mailinglistID | XM Community
Skip to main content

Currently trying to build an API to distribute surveys automatically based on a preexisting contact list import from our Data teams.

The issue we are running into is that the job is run on a daily basis and it creates a new mailinglistID each time an upload happens. 

Is there a way to write the API or see if we can create a static mailinglistID each time we upload? 

Any help would be appreciated. 

 

{

2

  "result": {

3

    "contactCount": 0,

4

    "mailingListId": "CG_012345678901234",

5

    "name": "string",

6

    "lastModifiedDate": "1597321249000",

7

    "creationDate": "1597321249000",

8

    "ownerId": "GR_FJDKAXL"

9

  },

10

}



Need to figure out a more dynamic mailinglistID search.

@klein_71 New ID got auto assigned when you create new one. If you want to keep the mailinglist ID, you have to create new contact inside of it. You can do it one by one with this API: https://api.qualtrics.com/fc43c25b3f3c3-create-contact-in-mailing-list
Or do it in batch with some transactiondata: https://api.qualtrics.com/bab13356ac724-create-transaction-contacts-import

Let me know if it helps

 


Hi @klein_71,

Try using the below 3 API’s in sequence which will help to import the contacts to an existing mailing list and distribute the surveys only to newly created contacts. 

  1. api.qualtrics.com/ca5ad8bbec6fb-create-transaction-batch - create a transaction batch as 1st step on daily basis and pass the batch id from result in next api call.
  2. api.qualtrics.com/bab13356ac724-create-transaction-contacts-import -  create contacts in a specific mailing list daily and also add these new contacts to the batch created in 1st step
  3. api.qualtrics.com/573e3f0a94888-create-distribution -  using this API create distribution to contacts in batch id. Here in the JSON body, the receipient should have only transactionBatchId.

Let me know if this works


Leave a Reply