Loading

Data Mapper Load Creates Blank Records for Linked Objects

Veröffentlichungsdatum: Nov 4, 2024
Beschreibung

Steps to Reproduce:

  1. Create a custom object with a master-detail relationship to a standard object (for example, Account or Case).
  2. Create several custom fields on the custom object. Do not mark any field as required.
  3. Create a Data Mapper Load that includes both the standard object and the custom object, with the custom object linked to the standard object.
  4. Add fields for both objects in the Fields tab of the Data Mapper Load.
  5. Preview the Data Mapper.

Observed Behavior:
Records are created for both objects, even though the input JSON does not contain any data for the linked object.

Lösung

This behavior is working as designed.

Explanation:
When a Data Mapper includes a linked object, a record for the linked object can be created even if the input JSON does not provide data for that object. This occurs because the Data Mapper automatically passes the parent record’s ID to the lookup field of the linked object record.

To prevent the creation of a linked object record when no input JSON data is provided, configure a field mapping in the linked object and mark it as Is Required for Upsert. If the required field does not receive input data, the linked object record will not be created.

Nummer des Knowledge-Artikels

003459868

 
Laden
Salesforce Help | Article