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
Carlo NewCarlo New 

Approval

Hello

 

Can I use APEX to assign Approvers?

 

So I want to allocate a number of Approvers to the Opportunity based on parameters like value.  Right now we have 15 user lookups and we populate these with apex then the approval rules use related user.  I now have a problem in that we have hit our limit of lookups on the Opportunity object - 30.  So I want to move the Approval away from User lookups / related users to a pure APEX method.  

 

I want to use unanymous Approval and I want to choose a different number of Approvers.

 

So low value opportunities might only require 3 Approvers.  Massive opportunities might need 10 Approvers.

FredrickUNFredrickUN

Interesting post...

Carlo NewCarlo New
Thanks Fredrick.
FredrickUNFredrickUN

Did you manage to resolve your issue in the end?

Carlo NewCarlo New

No

 

I've still got a load of User Lookup fields on the object which I hard code into the Approval rule step via the Web based UI.