Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Salesforce Marketing Cloud: SuccessResponses for REST Connection are Failing

sumalatham
New Contributor III
New Contributor III

Hello Team

 

We are trying to update account in salesforce marketing cloud.

Update API response status code is 200 Even the below scenarios,

1.Failture scenario

2.Success Scenario.

We need to configure successResponses based on the API response message.

 

I have tried the below snippets, still it’s not working

"successResponses": [

  {

    "responsePath": "call1.message.soap:Envelope.soap:Body.UpdateResponse.Results.StatusCode",

    "values": ["OK"]

  }

]

==============================================

 "successResponses": [

  {

   "message.soap:Envelope.soap:Body.UpdateResponse.Results.StatusCode": "OK"

  }

]

 

-----------------------------------------------

 

 "successResponses": [

  {

   "soap:Envelope.soap:Body.UpdateResponse.Results.StatusCode": "OK"

  }

]

====================================

 "successResponses": [

  {

   "call1.message.soap:Envelope.soap:Body.UpdateResponse.Results.StatusCode": "OK"

  }

]

"successResponses": [

  {

    "responsePath": " soap:Envelope.soap:Body.UpdateResponse.Results.StatusCode",

    "values": ["OK"]

  }

]

 

API Response:

{"call1":{"headers":null,"message":{"soap:Envelope":{"xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:wsu":"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd","soap:Header":{"wsa:MessageID":"urn:uuid:1212121211-4ee8-4ef5-a6e9-a00ce95abe8b","wsa:To":"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous","wsse:Security":{"wsu:Timestamp":{"wsu:Expires":"2024-08-02T07:07:54Z","wsu:Id":"Timestamp-256771f4-b7ab-4082-b232-5813910ef3de","wsu:Created":"2024-08-02T07:02:54Z"}},"wsa:Action":"UpdateResponse","wsa:RelatesTo":"urn:uuid:dssssssssc25b50e- "},"xmlns:soap":"http://schemas.xmlsoap.org/soap/envelope/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:wsa":"xxxxxxx","soap:Body":{"UpdateResponse":{"xmlns":"http://exacttarget.com/wsdl/partnerAPI","RequestID":"12121211121400b3426","Results":{"OrdinalID":"0","Object":{"Delete":"0","PartnerKey":{"xsi:nil":"true"},"ObjectID":{"xsi:nil":"true"},"xsi:type":"AccountUser","CustomerKey":"shgfdssadhgdjsksjhsdkjldlflh","AccountUserID":"12322","DefaultBusinessUnit":"1233442","ID":"dsdsdsdssds","Client":{"ID":"11121121121"},"Password":""},"StatusCode":"OK","StatusMessage":"Account User Updated / Created"},"OverallStatus":"OK"}},"xmlns:wsse":"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"}},"statusCode":200,"description":null,"status":"Failed"}}

 

Please can you help me on this?

 

Thanks

Sumalatha M

3 REPLIES 3

NM
Esteemed Contributor
Esteemed Contributor

Hi @sumalatham try this

"soap:Envelope.soap:Body.RetrieveResponseMsg.OverallStatus": "OK"

 

if you find the answer helpful, please accept as solution and gives kudos.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

sumalatham
New Contributor III
New Contributor III

Hello @NM 

I have tried this snippet still task was completed even failure scenario

"successResponses": {
"soap:Envelope.soap:Body.RetrieveResponseMsg.OverallStatus": "OK"
},
"unsuccessResponses": {
"statusCode": [400, 401, 404, 405, 500]
}

Response:

sumalatham_0-1722920085547.png

 

Thanks 

Sumalatha

 

NM
Esteemed Contributor
Esteemed Contributor

Hi @sumalatham , only add success response and then check. 

and add this

soap:Envelope.soap:Body.UpdateResponse.OverallStatus": "OK"

 

if you find the solution helpful, please accept it as solution and give kudos


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'