Symptom
How to add an extension field to OData services.
Environment
SAP Cloud for Customer
Resolution
There are two types of OData services in the Cloud for Customer environment:
- Standard OData services
- Custom OData services
Adapting Extension Fields to the Standard OData Service
- Go to the respective workcenter.
- Click the button Adapt to Enter Adaptation Mode.
- Select the Edit Master Layout option.
- Navigate to the field.
- Click Edit.
- In the new screens, navigate to the OData Services tab.
- The box for the respective OData service should be checked.
- Example: for Opportunity, you need to check the Opportunity OData service. For Accounts, you need to check Customer OData service.
- To check it, click Edit and then the + icon next to the checkbox.
Adapting Extension Fields to the Custom OData Service
- Go to the Administrator work center.
- Navigate to the OData Service Explorer view.
- Change the selection to Custom OData services.
- Click New to create a new custom OData service;
- Select Data Workbench enabled indicator if you wish for this service to be available as a Data Workbench object.
- Edit the custom OData service.
- Select the required Object under Select Business Object.
- Expand and select the entities.
- Now all the extension fields related to the selected entities will be available in the right-hand side window.
- Select all the required extension fields and save your custom OData service.
Once the custom OData service is created with all the required extension fields, by default all the extension fields will be available.
Keywords
OData Service, Extension Fields, Data Workbench , KBA , LOD-CRM-INT-API , OData API (C4C Only) , How To
Product
SAP Cloud for Customer add-ins all versions