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
FaridKognozFaridKognoz 

Describe sObject with Metadata API

Hi all;

 

I'm trying to get metadata  information from specific objects and fields.

For example the field type for "Account.AccountNumber" should retrieve "Text(40)".

I know how to do it with apex but I want to do it in Java using the metadata API. I am looking at the documentation for this API and I can't find any straightforward method for getting this info.

Is it correct the way I am trying to do this? (I mean using the metadata API?).

In case it is, is there a simple way to get this kind of information?

 

Thanks;

 

Farid

SuperfellSuperfell

see the describeSObject call in the enterprise and partner APIs.

FaridKognozFaridKognoz

Ok Simon, thanks for the quick reply.

Cheers;