You need to sign in to do that
Don't have an account?
Check Update permissions on object instance/record
We can use Schema.sObjectType.Contact.isUpdatable() to check if the current user has permissions to update Contact objects in general.
I want this for dynamic object.my object name is within the objName string variable.
I want this for dynamic object.my object name is within the objName string variable.
Hi Chenta
Try this
As a common practice, if your question is answered, please choose 1 best answer.
But you can give every answer a thumb up if that answer is helpful to you.
Thanks,
Alex
All Answers
Hi Chenta
Try this
As a common practice, if your question is answered, please choose 1 best answer.
But you can give every answer a thumb up if that answer is helpful to you.
Thanks,
Alex
you can use below code to pass the object name in string.
String customObjectName = 'CustomObjectName__c';
Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe();
Schema.SObjectType s = gd.get(customObjectName);
Schema.DescribeSObjectResult r = s.getDescribe();
system.debug('***********'+r.isUpdateable());
Thanks,
Avi