cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on OData API call

0 Kudos

Hi,

We are communicating with C4C through ODATA APIs. We are getting all entity with below URL -

https://api.sap.com/odata/1.0/catalog.svc/ContentEntities.ContentPackages('C4C')/Artifacts?$format=json

This returns the 10 entities but these are not matching with all entities mentioned in below Documentation page.

https://help.sap.com/doc/d0f9ba822c08405da7d88174b304df84/LATEST/en-US/index.html#/topic/PartnerAddr...

Could you please help us on this.

Also, Can We fetch the entity/Object specific services like ServiceRequest is one of the Object, which has 9 different services like Service Request Attachments,ServiceRequestBusinessTransactionDocumentReference, ServiceRequestTextCollection, etc.

Can someone please help me on this.

Thanks,

Hrushi

Accepted Solutions (0)

Answers (1)

Answers (1)

Vignesh_Dh
Participant
0 Kudos

Hi Hrushi,

If you have a C4C tenant then the new (V2) standard OData API metadata URL is https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/$metadata

replace the X in the URL with your tenant identifier.(you will get all information about the C4C Business Objects exposed in the standard service)

If you want to fetch all the root and sub-collection details in a single OData call, then you have to use the $expand operation in OData. (Refer C4C OData developer guide for more information and examples )

Regards,

Vignesh