SAP Knowledge Base Article - Public

3590530 - Why Is the Contact Email Address Not Saved When Creating a Lead via OData if the AccountPartyID Is Filled In C4C?

Symptom

It is observed that when creating a lead via OData in SAP Cloud for Customer (C4C), the contact e-mail address (ContactEMail) supplied in the payload is not saved in C4C in the following case:


1) AccountPartyID is filled with a valid account.
2) ContactPhone is empty in the payload. 

Environment

SAP Cloud for Customer

Reproducing the Issue

  • Prepare the OData Payload:

    • Include a valid AccountPartyID (an existing account in C4C).

    • Provide a ContactEMail field with a valid email address.

    • Do not include ContactPhone or set it as empty.

  • Send the OData Request:

    • Use an API tool or an integration service that supports OData.

    • Make a POST request to the C4C OData endpoint for lead creation.

  • Check the Response:

    • Ensure that the request is successfully processed (HTTP 201 Created response).

    • No errors related to the ContactEMail field should appear in the response.

  • Verify in SAP C4C:

    • Open the SAP C4C system.

    • Navigate to Sales Campain Work Center then go to Leads and search for the newly created lead.

    • Check the Contact Email field to see if the value from the payload was saved.

Cause

The system requires both AccountPartyID and ContactPhone to validate and save contact details. If AccountPartyID is provided but ContactPhone is empty, the system does not save ContactEMail because the contact information is considered incomplete.  

However:  
 If AccountPartyID is omitted, the email is saved because the contact is created independently.  
 If ContactPhone is filled, the email is saved because the phone number is serving as a critical identifier, thus allowing the email address to be saved. 

Resolution

To resolve this, ensure that either a ContactPhone is provided or that the AccountPartyID is correctly linked with all required contact details.

Keywords

OData; cloud for customer; c4c; Lead Creation; ContactEMail; AccountPartyID; ContactPhone; OData API; Lead Management; Contact Information; Email Not Saved; API Payload; Missing Contact Details; Lead Data; , KBA , LOD-CRM-INT-API , OData API (C4C Only) , Problem

Product

SAP Cloud for Customer core applications 2502