Hello All,
I’m using an API call to automate an email reminder for a second survey link on the date provided by each respondent in the first measure of a longitudinal survey. This is working, but it is sending a reminder email to the whole contact list every time a new respondent triggers the workflow. I only want it to send the email to the one participant who specifies that date, on that date. So each respondent only receives one reminder email on the date they previously specified in the first measure (as it is, people would end up with thousands of reminders). I hope that makes sense.
It can be an anonymous link that goes out because there is an authenticator on the second measure, which seems to be working fine (i.e. the embedded data from measure one is piping through to measure two correctly for specific individuals). But the anonymous link needs to go to the specific participant on their specific date, not to every contact on the list on each date.
I read a post suggesting making an API call to create a mailing list for every individual (so thousands of mailing lists in my case) but it was from six years ago so I wondered if there was a better solution now. If this is indeed the best solution, would I build the call for this into the below, or add another step on the workflow?
I also wondered if it was an option to add ContactID into the existing cURL, but automate the retrieval of ContactID every time? As the sample size will be large manual is quite unrealistic.
Current cURL as follows:
Thank you!
curl -XPOST -H 'X-API-TOKEN: <REDACTED>' -H 'Content-Type: application/json' https://<redacted>.qualtrics.com/API/v3/distributions -d '{
"message": {
"libraryId": "<REDACTED>",
"messageId": "<REDACTED>"
},
"recipients": {
"mailingListId": "<REDACTED>",
"directoryId": "<REDACTED>"
},
"header": {
"fromName": "XXX",
"replyToEmail": "<REDACTED>",
"fromEmail": "<REDACTED>",
"subject": "XXX"
},
"surveyLink": {
"surveyId": "<REDACTED>",
"expirationDate": "2028-12-31T00:00:00Z",
"type": "Individual"
},
"sendDate": "${e://Field/adjustedDate}"
}'