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
awp_paasawp_paas 

Can you use UserInfo to determine read/edit rights on Campaign?

I'm trying to determine a User's access rights (read only, edit) to a Campaign object at runtime, from Apex, so I can selectively provide custom functionality.

 

I've looked into UserInfo.getProfileId(); but I really need the "Can Modify Current Campaign" or "Cannot Modify Current Campaign" answer if possible.

 

Thanks in advance for any help!!

 

rawiswarrawiswar
did you find the answer to this already?