How can a developer determine if the current user will be able to - ProProfs Discuss
Topics
Products
Follow Us:

How can a developer determine if the current user will be able to create records for an object in Apex?

How can a developer determine if the current user will be able to create records for an object in Apex?

Change Image    Delete



A. By using the is creatable() method
B. By using the can creatable() method
C. By using the is insertable() method
D. By using the has access() method

This question is part of Platform Dev 1
Asked by Msladysyrenne, Last updated: Aug 04, 2020

+ Answer
Request

2 Answers

i.Elizabeth

I.Elizabeth

Answered Feb 02, 2018

Development is a vast field and needs proper understanding. You can’t progress with a command without knowing if it is possible to create it or not. This is why it is best to determine if a current user is able to create records for an object in Apex beforehand.

Some people may not know how to do this, but it is pretty straight forward. You can find out whether the user can create records or not by simply using the is creatable () method. This will help determine the access and permissions of the current user allowing you to find out if such a manipulation is possible or not.

 

John Smith

John Smith

Answered Jan 19, 2017

By using the isCreatable() method

####
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.