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
Suman GiriSuman Giri 

How to update the metadata of custom object using REST API

Hi,

 

Requirement :-  we have installed an app from appExchange which would create a custom object (Say xyz__c). We need to create a custom field to the above object programatically. We were unable to use the MetadataAPI as service callout would not work from within the Salesforce org.

We found in one of the forum topic that REST API can be used to achieve this.

We were able to display the list of objects in the org and also were able to describe the object in terms of the metadata.

We are referring to the below resource:

http://www.salesforce.com/us/developer/docs/api_re​st/index_Left.htm#StartTopic=Content/quickstart.h...

 

Is there a way I can achieve the Metadata API functionality using REST service call out ?

Appreciate your help or any pointers.

DevAngelDevAngel

REST Metadata API is still being rolled out. In preparation for our Summer Release webinar I have seen some metadata access making it's way into APEX code.  But, as of right now the metadata API via REST is not capable of doing what you desire.

 

Cheers,