+ Start a Discussion
Rocks_SFDCRocks_SFDC 

How to update Metadata Components ( Custom Fields ) by Using apex

Hi Team,

We wanted to update the attribute (lets take Description) of set of custom fields (lets take 500) at a time across the different objects which includes both stantard and custom objects by using apex code.

Could anyone please let us know how to start this.

Thanks,
Anil
Prateek Singh SengarPrateek Singh Sengar
May you can try using tooling api and automate this. There is a good tooling api apex wrapper available at
https://github.com/afawcett/apex-toolingapi

for more details visit
https://andyinthecloud.com/category/tooling-api/
Rocks_SFDCRocks_SFDC
Hi Prateek,

We have tried Tooling API, we have pulled the metadata components (Like fields, Workflows, Validation Rules ....) by using tooling API queries. Now we want to update the bulk custom fields(500 in number) at a time by using apex. This is something extension to previous functionlity.

Update the custom fields means any attribute like Label, Name or Description or Help text.

Thanks,
Anil