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
DianeMDianeM 

Adding additional approvers via apex

I have a use case where there are a significant number of approvers that are required.  If I attempt to set the approvers up in the record being approved I run into the upper limit on the maximum number of lookup fields allowed on an object.  The record is being submitted for approval using Apex.  Does anyone have any thoughts on how I might add a variable number of users as approvers in the same apex code where I submit the record for approval?  significant growth is anticipated in the next few years so I really cannot put all the required users in the object.