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
OCDGeekOCDGeek 

How to check whether a record can be updated for a given users sharing permissions

I'm using Apex classes with the "with sharing" enabled.

 

I have an Event SObject in the variable "event" that is at least viewable by a user. 

 

How do I check whether that record can be updated without attempting to do a "update event" call and catching the exception?

 

I have a series of callouts that need to be performed to update an external system, but I only want to do those callouts if the current Event record is writeable.

 

Thanks,

 

Steven