OData API
Enable customized fields for the aPI interface
Each newly added customized field can be enabled for the API interface. Depending on which object you add the new field to, the field will be available for the respective collection
Navigation for OData API
1. Test SAP Sales Cloud OData API with Postman 1.1. OData 1.2. Postman 2. GET Requests 2.1. SAP Sales Cloud Object Collections 2.2 Metadata 2.2.1. Principle 2.2.2. Attributes 2.2.3. SAP-Attributes 2.3. Work with Parameters 2.3.1. Filter 2.3.2. Work with Dates and Datetimes 2.3.3. Orderby 2.3.4. Top 2.3.5. Skip 2.3.6. Format 2.3.7. Select 2.3.8. Count 2.3.9. Inlinecount 2.3.10. Expand 2.4. Examples of GET Requests 2.5. Build OData Queries for Reports 3. X-CSRF-Token 4. POST Request for creating 4.1. Single POST Request 4.2. Create multiple entries with $batch 5. PATCH Request for updating 5.1. Single PATCH Request 5.2. Change multiple entries with $batch 6. DELETE Requests 7. OData Monitor 8. OData Service Explorer 9. Enable customized fields for the API interface 10. Connect Mircosoft Power BI® with SAP Sales Cloud API 11. Deep Links for URL to SAP Sales Cloud Objects
The following example shows how to create the field Potential on the Account object and enable it for the interface. Go via your User Icon to Adaption Mode and Add a new field on the Header Section.
After adding the field and filling out all necessary information navigate in the editing mode to the Tab OData Service. Here you can Add the field for the desired collection. Finally, click Save.
With an Account Collection within API Request it is now possible to query also the data of the Potential field:
In the output the field will be marked with the abbreviation KUT, which stands for Key User Tool. The output for the new customer extension field looks like this:
... "ZPotentialContent_KUT": "550000.000000", "ZPotentialcurrencyCode_KUT": "USD", "ZPotentialcurrencyCode_KUTText": "US-Dollar", ...
The Customer Experience team at Camelot ITLab deals with exciting and challenging CRM related topics every day and serves a large portfolio of different customers from a wide range of industries. Trust in this collaboration and feel free to contact us at tlil@camelot-itlab.com.
Was this article helpful?
If you like our content we would highly appreciate your review on Trustpilot
#SAP C4C #SAP Cloud 4 Customer #Cloud 4 Customer #Cloud for Customer #SAP Sales Cloud #Sales Cloud #OData #API #Request #Postman #DELTERequest #Delete