As a regular user (not system administrator) is it possible to create a share for a object that I'm not the owner of in APEX?

Or will the DML statement throw an error?

1 Answer 1


This should be possible either through a Class that uses "without sharing" or an Apex Trigger. These will function no matter who does the update. A class that uses "with sharing" will have a problem, though.

Quick warning: I've never deal with TaskShares, and I never make bets on whether Tasks will behave like normal objects.

  • Ok I'll check it out! Sep 11, 2012 at 18:47
  • Thanks Jeremy just checked it out and it looks like this was the correct way to go. Sep 13, 2012 at 15:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .