| Steps to reproduce | 1. Create a publication plan. 2. Add a document to the publication plan. 3. Add plan team members to the publication plan. For example, add User A and User B. 4. Run the following code block in Apex Anonymous. This will schedule the PP_PlanTeamMemberQueueSchedulable batch job to run every 10 minutes. System.schedule('PP_PlanTeamMemberQueueSchedulable 1', '0 0 * * * ?', new mvn.PP_PlanTeamMemberQueueSchedulable(0, 400)); System.schedule('PP_PlanTeamMemberQueueSchedulable 2', '0 10 * * * ?', new mvn.PP_PlanTeamMemberQueueSchedulable(0, 400)); System.schedule('PP_PlanTeamMemberQueueSchedulable 3', '0 20 * * * ?', new mvn.PP_PlanTeamMemberQueueSchedulable(0, 400)); System.schedule('PP_PlanTeamMemberQueueSchedulable 4', '0 30 * * * ?', new mvn.PP_PlanTeamMemberQueueSchedulable(0, 400)); System.schedule('PP_PlanTeamMemberQueueSchedulable 5', '0 40 * * * ?', new mvn.PP_PlanTeamMemberQueueSchedulable(0, 400)); System.schedule('PP_PlanTeamMemberQueueSchedulable 6', '0 50 * * * ?', new mvn.PP_PlanTeamMemberQueueSchedulable(0, 400)); 5. After 10 minutes, check the list of document collaborators on the document. User A and User B should be added to the document. 6. Add more plan team members to the publication plan. For example, add User C and User D. 7. After another 10 minutes, check the list of document collaborators on the document again. User C and User D should appear along with User A and User B, but they do not; User A and User B remain the only document collaborators on the document because User C and User D did not get picked up and added by the batch job. | | |