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?
Attribution to: jordan.baucke
Possible Suggestion/Solution #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.
Attribution to: Jeremy Nottingham
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/1361