Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (13.1k points)
As per the requirement, I want to change the owner of the account. So, is there any way to check for the CRUD permissions for user?

1 Answer

0 votes
by (26.7k points)
edited by

So basically, in able to check the user is capable of creation or not. You can use the below command:

Schema.sObjectType.Contact.isCreateable()

It will return either True or False.

I hope this will work.

Want to become a Salesforce expert? join Salesforce Integration Training now!!

Want to know more about Salesforce Integration? Watch this video on Salesforce Integration Tutorial | Salesforce Online Training:

Related questions

0 votes
1 answer
asked Dec 10, 2020 in Salesforce by dante07 (13.1k points)
0 votes
2 answers
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...