You need to sign in to do that
Don't have an account?
teena jacob
isAccessible() check for relational object field query
Hi,
SELECT Id, LastName FROM Contact
direct querying object we can use this for isAccessabile() check : sObjectType.Contact.isQueryable() && sObjectType.Contact.isAccessible()&& Schema.sObjectType.Contact.fields.id.isAccessible() && sObjectType.Contact.fields.LastName.isAccessible()
But for relational object field how to write isAccessible() check?
Select id ,Visit_Type__r.Priority__c from Event
Thanks
Schema.sObjectType.Visit_Type__c.fields.Priority__c .isAccessible();
https://salesforce.stackexchange.com/questions/208502/how-to-check-field-accessiblity-of-a-field-that-is-related-to-the-object-being-c
It will not work!