+ Start a Discussion
Dippan PatelDippan Patel 

Get deprecated fields using Apex

Hi All, 

Is there a way to get all the deprecated fields of managed package from Lead? 

I have many fields on page layouts of Leads which are deprecated by the managed package. I want to get a list of all such fields using apex. 
ShirishaShirisha (Salesforce Developers) 
Hi Dippan,

Greetings!

This can be achieved by the REST GET call.Can you please check the below thread for more information and the sample code to get all the deprecated fields/components from the managed package.

https://salesforce.stackexchange.com/questions/131551/vf-page-to-list-all-deprecated-components-from-package-in-customer-org

Kindly let me know if it helps you and close your query by marking it as best answer so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Dippan PatelDippan Patel
Hi Shirisha, 

Can you please explain me what part of this link are you referring to? 

Thank you.