cancel
Showing results for 
Search instead for 
Did you mean: 

Get Contact in Emarsys returns error 2004 Invalid key field id

former_member15112
Discoverer
0 Kudos

Hi, I am new in Emarsys and for now I am trying to get the contact data from postman https://dev.emarsys.com/docs/emarsys-api/1390c2e1ee412-get-contact-data.

Unfortunately, I got this error

{"replyCode":2004,"replyText":"Invalid key field id: xxxxxxx","data":""}

I am not sure about the value of the payload request needed in the body (especially this keyValues). I've been trying to change give email or uid in the keyId value, but still having the same error.

Here is the example of my payload request

{ "contact_list_id": xxxxxxx, "keyId": "xxxxxxx", "keyValues": [ "Email" //I am not sure what I have to put here ], "fields": [ "1","2", "3" ]}

It is strange because with getContactList endpoint it is working

Any help is appreciated, thanks 🙂

0 Kudos

Hello Zen

Any update on this? I have the same question.

Thank you!

moshenaveh
Community Manager
Community Manager
0 Kudos

vailg

Hello, While we're happy that you've come to SAP Community to get an answer to your question, you posted your question as an answer in an old thread.
I've converted your answer to a comment, but even so -- posting in older threads is not the best way to get guidance.
If you're looking for help, you should ask a new question: https://answers.sap.com/questions/ask.html.
Here are some tips to help you craft an effective question for our community: https://community.sap.com/resources/questions-and-answers, https://developers.sap.com/tutorials/community-qa.html, https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-a....
I encourage you to follow this guidance, as I'd really like to see you get a solution to your problem.
I hope you find this advice useful!

Accepted Solutions (0)

Answers (0)