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
Deshraj KumawatDeshraj Kumawat 

Need to get metadata information in the Apex Code

is there any way to get the metadata information in apex code ?

 

I have a requirement, I craeted a custom detail page button on a object. I need to get the id of this custom detail page button in the apex code.

 

We can get this information using the MetaData APIs but as per my knowledge we can not use Metadata APIs in the apex code/

 

is there any way to do this ???

 

Thank You !!

 

Thanks 

Deshraj Kumawat

Certified Developer | Certified Administrator