SAP Knowledge Base Article - Public

3285178 - Unable to Fetch Author Data in OData Entity ServiceRequestTextCollection

Symptom

You are using the OData entity ServiceRequestTextCollection, and notice that it is not possible to fetch the Author data.

Environment

SAP Cloud for Customer

Cause

The Author related data needs to be fetched using the OData entity ServiceRequestCollection, not the ServiceRequestTextCollection.

Resolution

To get get the complete details of the ServiceRequestTextCollection entity, with the author data as well, it would be necessary to use a query similar to the below one:

  • https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/ServiceRequestCollection( 'xxxxxxxxxxxxxxxxxxxxxxxxxxx')?$expand=ServiceRequestTextCollection&odata-show-authorName=true

With this, you can use the AuthorUUID to get the Author Name, since this query will show all the Service Request root data along with TextCollection.

Keywords

OData, API, odataapi, ServiceRequestTextCollection, ServiceRequestCollection, Author, Author Name, AuthorUUID, Author Data, Data, C4C, Tickets, Service, Service Request, How To, , KBA , LOD-CRM-SRP-API , Ticket API & Odata , How To

Product

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