Andy in the Cloud

From BBC Basic to Force.com and beyond…

233 thoughts on “Introduction to calling the Metadata API from Apex

  1. How to write test class for this.

  2. Pingback: Update picklist value and add it in record type using apex – SFDCians

  3. Hello Andrew,

    Basically, I wanted to copy all profile settings from one profile to another profile.
    Is this possible using Metadata API? If not then can you inform me which profile settings can be accessed?

    I have tried updating Profile tabVisibility using metadata API, it works as expected. (Sometimes I get Read timed out error.)

    When I am trying to update fullName and userLicense of the profile, I got “System.CalloutException: IO Exception: Read timed out”. Not able to do this update.
    Do you have any idea about this?
    I have raised the issue regarding this in git as well – https://github.com/financialforcedev/apex-mdapi/issues/259

  4. Hi Andrew

    I am using Metadataservice class in my SandboxPostCopy Class to modify custom settings and custom labels but as it is executed by automated process it is throwing exception”INVALID_SESSION_ID” while executing this class after Sandbox refresh. Is there any workaround for this?
    Thanks

  5. Hi Andrew Fawcett, Do you have any example of updating the List view filter values? I have a requirement to dynamically update the list view filter’s value for an object. Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s