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
bz880bz880 

How do you identify a deprecated field

Using the AJAX api, is there a way to identify if a field has been deprecated. I waded through the javascript source and cannot find any reference.

Baldwin
DevAngelDevAngel
Deprecated field? Not sure what you mean by that.
bz880bz880
For example, the OpportunityLineItem object has a field called ProductId. In the Sforce API documentation, it states that ProductId is deprecated as of version 3.0.
Can the DescribeSObjectResult identify if that field is deprecated?
DevAngelDevAngel
Right, ok. No. No way to identify it based on describe using AJAX toolkit or any other API programming tool. Sorry.