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
k sfdck sfdc 

why need apex code for Assignment rules and Approval Process in salesforce?

 
KaranrajKaranraj
Can you please ellaborate your question? Are you asking about how to enforce assigment rule in apex code?
k sfdck sfdc
Hi,
        Using admin we will create Assignment rules and Approval Process.At what situations we will write apex code for Assignment rules and Approval Process?
KaranrajKaranraj
Anything you are not able to achieve thorugh the declarative development, you will go for an programtic way. For example. Assigment rule is only available for lead and case object,suppose if you want to implement assigment rule for the custom object, then you have to write apex code to implement that.