When an object has the same API name for two fields, ignoring namespace, the data from the custom field is not fetched by the Data Mapper.
Example:
Managed package Custom field:{namespace}__Email__c
Custom field: Email__c
Even when an object record has a value for the custom field (Email__c in this case), the Data Mapper fetches a ‘null’ value. Since the default behavior of the Data Mapper is to ignore the ‘null’ values, the ‘Response’ will not have the attribute set on the output JSON path.
Salesforce uses ‘__c’ to indicate a field is a custom field. Regardless of adding namespace, it is not good practice to use the same API name for fields. API names should be completely unique. It's advisable to avoid using naming conventions that the backend system will automatically generate, as this can lead to conflicts and unintended behaviors.
If the above recommendation is not an option, check the following to mitigate the issue:
1. Rename the custom `Field Label/Name` to generate an unique `API Name`. This is straight forward and the easiest way to resolve the issue. However, sometimes this option is not viable due to the field being used in various API's or Integrations. In such scenarios, opt for the 2nd option below.
2. Create a new field on the Object itself with a
`Formula` data type
`Text` return type
Note: This can vary depending on your requirements.
Formula being the custom field itself (like Email__c)
Note: This can vary depending on your requirements.
Fill in the remaining details as needed for `Field-level Security` and `Page Layouts`.
After creating the field as in Step #2, map the `EXTRACT JSON PATH` on to the new field in the DataRaptor.
000393901

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.