SurveyAnswerSvc
Click here for a complete list of operations.
InsertRange
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /singleview/common/surveyanswersvc.asmx HTTP/1.1
Host: www.simplicitycrm.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://services.simplicitycrm.com/dataintegration/surveyanswer/InsertRange"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<InsertRange xmlns="http://services.simplicitycrm.com/dataintegration/surveyanswer">
<Token>string</Token>
<SurveyAnswers>
<SurveyAnswer>
<RSN>string</RSN>
<DisplayValue>string</DisplayValue>
<Survey_RSN>string</Survey_RSN>
<Parent_RSN>string</Parent_RSN>
<SurveyInstance_RSN>string</SurveyInstance_RSN>
<OnlineForm_RSN>string</OnlineForm_RSN>
<Date>dateTime</Date>
<KeyCode>string</KeyCode>
<LabelCode>string</LabelCode>
<Page_Index>int</Page_Index>
<Survey_Index>int</Survey_Index>
<SurveyInstance_DedupeKey>string</SurveyInstance_DedupeKey>
<CampaignList_RSN>string</CampaignList_RSN>
<LabelCode_RSN>string</LabelCode_RSN>
<Answers>
<SurveyAnswerField xsi:nil="true" />
<SurveyAnswerField xsi:nil="true" />
</Answers>
</SurveyAnswer>
<SurveyAnswer>
<RSN>string</RSN>
<DisplayValue>string</DisplayValue>
<Survey_RSN>string</Survey_RSN>
<Parent_RSN>string</Parent_RSN>
<SurveyInstance_RSN>string</SurveyInstance_RSN>
<OnlineForm_RSN>string</OnlineForm_RSN>
<Date>dateTime</Date>
<KeyCode>string</KeyCode>
<LabelCode>string</LabelCode>
<Page_Index>int</Page_Index>
<Survey_Index>int</Survey_Index>
<SurveyInstance_DedupeKey>string</SurveyInstance_DedupeKey>
<CampaignList_RSN>string</CampaignList_RSN>
<LabelCode_RSN>string</LabelCode_RSN>
<Answers>
<SurveyAnswerField xsi:nil="true" />
<SurveyAnswerField xsi:nil="true" />
</Answers>
</SurveyAnswer>
</SurveyAnswers>
</InsertRange>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<InsertRangeResponse xmlns="http://services.simplicitycrm.com/dataintegration/surveyanswer">
<InsertRangeResult>
<ErrorCode>int</ErrorCode>
<InsertResults>
<InsertResult>
<ErrorCode>int</ErrorCode>
<RSN>string</RSN>
<SurveyInstance_RSN>string</SurveyInstance_RSN>
<LogAgainst_RSN>string</LogAgainst_RSN>
<Survey_Index>int</Survey_Index>
<Page_Index>int</Page_Index>
</InsertResult>
<InsertResult>
<ErrorCode>int</ErrorCode>
<RSN>string</RSN>
<SurveyInstance_RSN>string</SurveyInstance_RSN>
<LogAgainst_RSN>string</LogAgainst_RSN>
<Survey_Index>int</Survey_Index>
<Page_Index>int</Page_Index>
</InsertResult>
</InsertResults>
</InsertRangeResult>
</InsertRangeResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /singleview/common/surveyanswersvc.asmx HTTP/1.1
Host: www.simplicitycrm.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<InsertRange xmlns="http://services.simplicitycrm.com/dataintegration/surveyanswer">
<Token>string</Token>
<SurveyAnswers>
<SurveyAnswer>
<RSN>string</RSN>
<DisplayValue>string</DisplayValue>
<Survey_RSN>string</Survey_RSN>
<Parent_RSN>string</Parent_RSN>
<SurveyInstance_RSN>string</SurveyInstance_RSN>
<OnlineForm_RSN>string</OnlineForm_RSN>
<Date>dateTime</Date>
<KeyCode>string</KeyCode>
<LabelCode>string</LabelCode>
<Page_Index>int</Page_Index>
<Survey_Index>int</Survey_Index>
<SurveyInstance_DedupeKey>string</SurveyInstance_DedupeKey>
<CampaignList_RSN>string</CampaignList_RSN>
<LabelCode_RSN>string</LabelCode_RSN>
<Answers>
<SurveyAnswerField xsi:nil="true" />
<SurveyAnswerField xsi:nil="true" />
</Answers>
</SurveyAnswer>
<SurveyAnswer>
<RSN>string</RSN>
<DisplayValue>string</DisplayValue>
<Survey_RSN>string</Survey_RSN>
<Parent_RSN>string</Parent_RSN>
<SurveyInstance_RSN>string</SurveyInstance_RSN>
<OnlineForm_RSN>string</OnlineForm_RSN>
<Date>dateTime</Date>
<KeyCode>string</KeyCode>
<LabelCode>string</LabelCode>
<Page_Index>int</Page_Index>
<Survey_Index>int</Survey_Index>
<SurveyInstance_DedupeKey>string</SurveyInstance_DedupeKey>
<CampaignList_RSN>string</CampaignList_RSN>
<LabelCode_RSN>string</LabelCode_RSN>
<Answers>
<SurveyAnswerField xsi:nil="true" />
<SurveyAnswerField xsi:nil="true" />
</Answers>
</SurveyAnswer>
</SurveyAnswers>
</InsertRange>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<InsertRangeResponse xmlns="http://services.simplicitycrm.com/dataintegration/surveyanswer">
<InsertRangeResult>
<ErrorCode>int</ErrorCode>
<InsertResults>
<InsertResult>
<ErrorCode>int</ErrorCode>
<RSN>string</RSN>
<SurveyInstance_RSN>string</SurveyInstance_RSN>
<LogAgainst_RSN>string</LogAgainst_RSN>
<Survey_Index>int</Survey_Index>
<Page_Index>int</Page_Index>
</InsertResult>
<InsertResult>
<ErrorCode>int</ErrorCode>
<RSN>string</RSN>
<SurveyInstance_RSN>string</SurveyInstance_RSN>
<LogAgainst_RSN>string</LogAgainst_RSN>
<Survey_Index>int</Survey_Index>
<Page_Index>int</Page_Index>
</InsertResult>
</InsertResults>
</InsertRangeResult>
</InsertRangeResponse>
</soap12:Body>
</soap12:Envelope>
JSON
The following is a sample JSON request and response. The placeholders shown need to be replaced with actual values.
POST /singleview/api/common/surveyanswersvc/InsertRange HTTP/1.1
Host: www.simplicitycrm.com
Content-Type: application/json; charset=utf-8
Content-Length: length
Authorization: Token string
{
"SurveyAnswers":[
{
"RSN":string,
"DisplayValue":string,
"Survey_RSN":string,
"Parent_RSN":string,
"SurveyInstance_RSN":string,
"OnlineForm_RSN":string,
"Date":dateTime,
"KeyCode":string,
"LabelCode":string,
"Page_Index":int,
"Survey_Index":int,
"SurveyInstance_DedupeKey":string,
"CampaignList_RSN":string,
"LabelCode_RSN":string,
"Answers":[
{
"FieldName":string,
},
{
"FieldName":string,
},
],
},
{
"RSN":string,
"DisplayValue":string,
"Survey_RSN":string,
"Parent_RSN":string,
"SurveyInstance_RSN":string,
"OnlineForm_RSN":string,
"Date":dateTime,
"KeyCode":string,
"LabelCode":string,
"Page_Index":int,
"Survey_Index":int,
"SurveyInstance_DedupeKey":string,
"CampaignList_RSN":string,
"LabelCode_RSN":string,
"Answers":[
{
"FieldName":string,
},
{
"FieldName":string,
},
],
},
],
},
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length
{
"ErrorCode":int,
"InsertResults":[
{
"ErrorCode":int,
"RSN":string,
"SurveyInstance_RSN":string,
"LogAgainst_RSN":string,
"Survey_Index":int,
"Page_Index":int,
},
{
"ErrorCode":int,
"RSN":string,
"SurveyInstance_RSN":string,
"LogAgainst_RSN":string,
"Survey_Index":int,
"Page_Index":int,
},
],
},