Upsert operation to salesforce | XM Community
Skip to main content
Solved

Upsert operation to salesforce

  • July 12, 2018
  • 1 reply
  • 51 views

Forum|alt.badge.img+3
When I insert a record, every is ok, and I will get a Id value in my debug email that has inserted in salesforce. But I got an error (error: Unable to perform the upsert. Error: A duplicate value was specified for field 'Id' in object 'MAFSurveyQuestions__c', duplicate value 'a94e000000001R4AAI' prior value 'a94e000000001R4AAI') when I changed insert to upsert and added a Embedded Data as a unique key: ! And my survey is distributed using a button that linked to url. Does anybody have some solutions ?

Best answer by LaurenK

Hello @annaWang! After taking a closer look at your inquiry, I believe this is a question our Support team would be best able to handle. If you have not yet already, feel free to reach out to our team so they can further troubleshoot this with you!

1 reply

LaurenK
Former XM Community Team Member
Forum|alt.badge.img+13
  • Former XM Community Team Member
  • 899 replies
  • Answer
  • July 20, 2018
Hello @annaWang! After taking a closer look at your inquiry, I believe this is a question our Support team would be best able to handle. If you have not yet already, feel free to reach out to our team so they can further troubleshoot this with you!