SurveyAnswerSvc


Click here for a complete list of operations.

SelectByRSN

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: simplicitycrm.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://services.simplicitycrm.com/dataintegration/surveyanswer/SelectByRSN"

<?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>
    <SelectByRSN xmlns="http://services.simplicitycrm.com/dataintegration/surveyanswer">
      <Token>string</Token>
      <RSN>string</RSN>
      <FieldNames>
        <string>string</string>
        <string>string</string>
      </FieldNames>
    </SelectByRSN>
  </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>
    <SelectByRSNResponse xmlns="http://services.simplicitycrm.com/dataintegration/surveyanswer">
      <SelectByRSNResult>
        <ErrorCode>int</ErrorCode>
        <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>
        <CreatedOn>dateTime</CreatedOn>
        <CreatedBy>string</CreatedBy>
        <ModifiedOn>dateTime</ModifiedOn>
        <ModifiedBy>string</ModifiedBy>
        <CampaignList_RSN>string</CampaignList_RSN>
        <LabelCode_RSN>string</LabelCode_RSN>
        <Answers>
          <SurveyAnswerField>
            <FieldName>string</FieldName>
            <Value />
          </SurveyAnswerField>
          <SurveyAnswerField>
            <FieldName>string</FieldName>
            <Value />
          </SurveyAnswerField>
        </Answers>
      </SelectByRSNResult>
    </SelectByRSNResponse>
  </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: 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>
    <SelectByRSN xmlns="http://services.simplicitycrm.com/dataintegration/surveyanswer">
      <Token>string</Token>
      <RSN>string</RSN>
      <FieldNames>
        <string>string</string>
        <string>string</string>
      </FieldNames>
    </SelectByRSN>
  </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>
    <SelectByRSNResponse xmlns="http://services.simplicitycrm.com/dataintegration/surveyanswer">
      <SelectByRSNResult>
        <ErrorCode>int</ErrorCode>
        <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>
        <CreatedOn>dateTime</CreatedOn>
        <CreatedBy>string</CreatedBy>
        <ModifiedOn>dateTime</ModifiedOn>
        <ModifiedBy>string</ModifiedBy>
        <CampaignList_RSN>string</CampaignList_RSN>
        <LabelCode_RSN>string</LabelCode_RSN>
        <Answers>
          <SurveyAnswerField>
            <FieldName>string</FieldName>
            <Value />
          </SurveyAnswerField>
          <SurveyAnswerField>
            <FieldName>string</FieldName>
            <Value />
          </SurveyAnswerField>
        </Answers>
      </SelectByRSNResult>
    </SelectByRSNResponse>
  </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/SelectByRSN HTTP/1.1
Host: simplicitycrm.com
Content-Type: application/json; charset=utf-8
Content-Length: length
Authorization: Token string

{
  "RSN":string,
  "FieldNames":[
    string,
    string,
  ],
},
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length

{
  "ErrorCode":int,
  "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,
  "CreatedOn":dateTime,
  "CreatedBy":string,
  "ModifiedOn":dateTime,
  "ModifiedBy":string,
  "CampaignList_RSN":string,
  "LabelCode_RSN":string,
  "Answers":[
    {
      "FieldName":string,
    },
    {
      "FieldName":string,
    },
  ],
},