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
Lee_CampbellLee_Campbell 

getDescribe() method does not exist - Can't see reason

Could anyone suggest to me why the following code, in which the variable being assigned from is a Date/Time and the "assigned to" is a private String:

 

completionFieldName = Milestone1_Project__c.Procurement_Link__c.Date_Time_Submitted__c.getDescribe().getName();

 

yields no error but the following, where the left is, again a private String and the right is a Boolean, gives the "method does not exist getDescribe()" error?

 

completionFieldName = Milestone1_Project__c.Procurement_Link__c.First_Pass_Complete__c.getDescribe().getName();

 

Any help greatly appreciated.

 

Thanks,

Lee

Lee_CampbellLee_Campbell

Furthermore, I cna edit the class in the developer console, but none of the edit buttons appear in the browser.

 

Also, I can't delete the class, or any class it refers to (I receive a 500 when I try to do so).

 

Wit's end...

 

Please help! :(

Lee_CampbellLee_Campbell

*I can edit...