This is the documentation for Clover Club 12.0.
Documentation for the upcoming version Rampur 13.0 can be found here.

SAP C4C - Make Custom Field Accessible via OData

This article describes how to make you your own custom field accessible in OData, so it is included in the standard dataset available via OData calls and thus available for use in the application.

The custom field created in this example is called PFXCustomerId.

Steps:

  1. Log into SAP Cloud Application Studio.

  2. Select solution where you want to add a new field (in our case Account).

  3. Right click the top node and select Add > New Item.

  4. Select OData Extension.

  5. Name the extension and select a particular space (customer in our case).

  6. Right click it and click Activate.

  7. Double click the newly created *.xodata object that will take you to the web version of C4C.

  8. For login use the same (developer) account as for Development Studio.

  9. Load the OData screen and look for your field in the left panel.

  10. In our case: Root > CurrentCommon > PFXCustomerId and check the checkbox.

  11. Save changes.

  12. From now on you will see the field and its data in OData responses.