SAP Knowledge Base Article - Public

3504664 - How To Null Date Field in C4C

Symptom

Within your business scenario, it is necessary to make the value of a field (Standard/KUT/PDI) date type null via Odata Service.

E.g.
The value is:
<d:ZKUT_TestField_KUT>2024-07-22T14:07:58.7615700Z</d:ZKUT_TestField_KUT>

The value should be:
<d:ZKUT_TestField_KUT m:null="true"/> 


Environment

SAP Cloud For Customer

Resolution

  1. Access the Odata environment e.g. Postman.
  2. Perform the Patch call with the following payload:

    "ZKUT_TestField_KUT": null

  3. As a result, the value returns from a GET call as <d:ZKUT_TestField_KUT m:null="true"/> 

See Also

SAP Cloud for Customer OData API Developer's Guide
SAP Cloud for Customer OData API v2 Reference




Keywords

null value; null; date; odata;  , KBA , LOD-CRM-INT-API , OData API (C4C Only) , How To

Product

SAP Cloud for Customer core applications 2405