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
Rupesh A 8Rupesh A 8 

How to share records in Batch class

Hi,

I have two custom objects like Private1 and Private2. For these two objects given lookup relationship to Account object. Here whatever the records are entered into these two objects then that particular Account team member can able to see the two custom object's records.

Please help me how to acheive this by using "Batch Apex". Thank you in advance.
James LoghryJames Loghry

Hi Rupesh, there is actually some great documentation on this here: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_bulk_sharing_recalc.htm


- James Loghry
Demand Chain Systems, Inc (DCS)
http://www.demandchainsystems.com