SAP Knowledge Base Article - Public

2926751 - How to Retrieve Internal Memos from Tickets via OData Service

Symptom

You are unable to retrieve the internal memos from the tickets via OData Service. When calling ServiceRequestInteractionCollection using OData V1 API, only the emails are returned.

Environment

SAP Cloud for Customer

Reproducing the Issue

Get call on ServiceRequestInteractionCollection

Resolution

You can create a custom OData on ServiceRequestCollection with association ServiceRequestInteraction with the following steps:

Step 1:

Retrieve Object ID of the ticket:

https://myXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/ServiceRequestCollection?$filter=ID eq 'WWW'

Step 2:

Retrieve the interactions:

https://myXXX.crm.ondemand.com/sap/c4c/odata/cust/v1/YYY/ServiceRequestCollection( 'ZZZ')/ActivityServiceRequestInteraction

(where WWW is the ticket ID, XXX is the system URL, YYY is the name of the custom OData and ZZZ is the Object ID).

It will retrieve the Object ID and the Etag of the internal memos.

Keywords

Internal memo, OData, tickets, ServiceRequestInteractionCollection, , KBA , AP-RC-ODF , OData framework (C4C Only) , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions