+ Start a Discussion

Sharing Account/opportunity/leads when user is out of office

Hi Everyone,

I want to share my user accounts,opportunities and lead records when he is out of office with a deligated user .And when he returns back the sharing as to stop.

Please share your views on this and tell me the way how can I achieve this.
AmitAmit (Salesforce Developers) 

Write BatchApex class which can check user status and assign or remove sharing rule for user record. 

Please refer following link for sharing a record via apex :