function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Scooter429Scooter429 

Programmatically mapping custom fields ?

Is it possible using the API to create custom field mappings?  Specifically can I programmatically map custom lead fields to custom contacts fields or does this need to be done using the UI?

Thank you.
michaelforcemichaelforce
To my knowledge, the table(s) that hold the mappings are not accessible through the API.  You could, however, convert a lead through the API, then read the "ConvertedAccountId", "ConvertedContactId", and "ConvertedOpportunityId" fields and update certain fields on those newly created records as needed.  Depending on the application, this could be a decent solution.