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

SUCCESS CRITERIA - Soap connector

smithamg
Regular Contributor
Regular Contributor

Hi team,

We are integrating a target application with Saviynt using ootb SOAP connector

SOAP request returns below response xml

<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Encoding="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<enab:ImportDataResponse xmlns:enab="enablon">
<Response>
<RowCount xsi:type="xsd:int">1</RowCount>
<RowSuc xsi:type="xsd:int">0</RowSuc>
<ErrMsg xsi:type="xsd:string">Record contains some values that would create duplicate primary keys.</ErrMsg>
</Response>
</enab:ImportDataResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

For Success Scenario, value for RowSuc will be 1. Attached the JSON I tried with but its not hadling failure scenario.

How to define Success criteria for this response? Please help me with correct syntax

Thanks,

Smitha

2 REPLIES 2

Vedanth_BK
Saviynt Employee
Saviynt Employee

Hi @smithamg

Please try the below syntax:

"SUCCESSCRITERIA" : {"SUCCESSRESPONSE=1"}

Thank you
Vedanth

smithamg
Regular Contributor
Regular Contributor

Thanks, Vedanth.

I have used the same in my JSON.

"RESPONSEMAPPING":{
"SUCCESSRESPONSE" : "Body.ImportDataResponse.Response.RowSuc"
},
"SUCCESSCRITERIA" : "SUCCESSRESPONSE=1",
"FAILURECRITERIA":"SUCCESSRESPONSE=0"
}