Get ContactID for a Response | XM Community
Skip to main content
Solved

Get ContactID for a Response


Hi, Is there a way to get the ContactId of the response. Currently when I export the response data for a survey via API, the csv has a Recipient email/first name/last name etc however it does not have any ContactId. Background: Currently I am trying to create prototype and in order to relate the response data to contact data I am doing the following: (1) That gets a Survey data for an SurveyID (2) Get's the Distribution list and MailingListID (I have only 1 distribution list) (3) Get's the contacts from the Distribution list (4) Download the response data (5) Join the response data to contact data based on email address (6) Save it to another database I don't want to use the email as the "Joining" entity. Thanks

Best answer by AravindA

Unfortunately, we don't have an API endpoint to do this right now. However, we have heard this request a few times now. I have since notified the Target Audience team to add this to their backlog!
View original

8 replies

Michael_Campbell_RedPepper
QPN Level 3 ●●●
Forum|alt.badge.img+3
Let me look into this - I would expect that the ContactID would be included with the export, but I haven't worked much with it. Perhaps you could include it as an Embedded Field?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5923 replies
  • March 19, 2018
You can include RecipientID as an embedded data field. If you are using Target Audience RecipientID and contact id are not the same thing. Including ContactID as an embedded data field doesn't work.

  • Author
  • 3 replies
  • March 19, 2018
Yeah there is no way to include ContactID as an embedded field. Look's like the only way to join them is use email as I suggested in my post

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5923 replies
  • March 19, 2018
Why not use RecipientID as the joining field? It is a unique identifier for a recipient in a mailing list and doesn't change.

  • Author
  • 3 replies
  • March 19, 2018
How to include RecipientID in the response export?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5923 replies
  • March 19, 2018
Just add it as an embedded variable: !

  • Author
  • 3 replies
  • March 19, 2018
Thanks! that works. I am looking if there is an existing API call (or chain of calls) that I can use to get the Contact details using the RecepientID

AravindA
Qualtrics Employee
  • Qualtrics Employee
  • 4 replies
  • Answer
  • May 2, 2018
Unfortunately, we don't have an API endpoint to do this right now. However, we have heard this request a few times now. I have since notified the Target Audience team to add this to their backlog!

Leave a Reply