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
narendra jagwannarendra jagwan 

lookup field type

how we can check the lookup  is custom object  or standard object in dynamically ways..
Nilesh Jagtap (NJ)Nilesh Jagtap (NJ)
You can check if the object name ends with ' __c'

Thanks,
N.J
Anup JadhavAnup Jadhav
You can also call isCustom() method on the DescribesObjectResult class.

See here: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_sobject_describe.htm#apex_Schema_DescribeSObjectResult_isCustom