SAP Knowledge Base Article - Public

3203759 - How to Create Survey Signature Attachment using Odata

Symptom

You want to create Survey Signature Attachment using Odata Services

Environment

SAP Cloud for Customer

Resolution

1. From the ticket ID, Get the Object ID of the Ticket using Data Workbench

2. Use the below URL, to get the Survey Response related to that ObjectID

https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/SurveyResponseCollection?filter=BusinessTransactionDocumentUUID eq 'ObjectID'

Object ID - Object ID of Ticket.

XXXXXX - Tenant ID of the system

3. Once you get the Survey Reponse, Navigate to Survey Signature using below URL :

https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/SurveyResponseCollection('ObjectID')/SurveySignature

Object ID - Object ID of Survey Response

From the above GET call, you will get the Object ID of the Survey Signature.

Posting data in Survey Signature Attachment Collection:

1. Go to Administrator -> Odata Service Explorer.

2. Select the service c4codataapi -> Test

3. Choose the entity SignatureAttachment

4. Choose the method as post and then use the below payload

 {

"ParentObjectID" : "Object ID of Survey Signature",

"MimeType" : "IMAGE/PNG",
"Binary" : "Binary data",

"TypeCode" : "10096",

"CategoryCode" :2

}

This will create a Signature Attachment in the system.

Keywords

Odata, Survey, Survey Response, Survey Signature Attachment, Survey Signature , KBA , AP-RC-ODF , OData framework (C4C Only) , Problem

Product

SAP Cloud for Customer add-ins all versions