I have a salesforce app, and I'd like to use it to add fields to the
Lead object in salesforce.
This can be achieved in Salesforce by going to
Setup > Object Manager > Lead > FieldsAndRelationships > New and filling out the form there.
However, I would like to create this new field automatically using the REST api.
I cannot find any documentation on how to achieve this. The closest I've found is Retrieve Metadata for an Object which has documentation on how to fetch the object fields, but no information on how to add one.
The concept is, I'd like to add a field
MyCustomField to the
Lead object, then iterate over all the
Leads to populate that column with app-specific data.
Is what I'm trying to achieve possible with the REST api?
Thanks for any input.