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
Fiaz AhmadFiaz Ahmad 

Need a php code to create custom Field in standard objects like (Lead, Contact)

Hello everybody,

I want to create a custom field using metadata api with php. I searched many forums and sites but I could not found any solution about this problem. If anyone have any PHP code snipest please post here.

Thanks in advance

Best Answer chosen by Admin (Salesforce Developers) 
Fiaz AhmadFiaz Ahmad

Thanks, but I already found a solution.

All Answers

savagenoobsavagenoob

You actually want to create a new field in your Salesforce account or just upsert to a custom field already in the system? 

Fiaz AhmadFiaz Ahmad

Thanks, but I already found a solution.

This was selected as the best answer
Park Walker (TAGL)Park Walker (TAGL)

It would be helpful for those searching for the same thing in the future if you could post the solution you found, or at least a link to it.