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
rahulsharmarahulsharma 

Help needed for Approval Process

Hello everyone,

I'm currently working on Approval process but had stuck at a point any help will be highly appreciated,

I just want to avoid multiple pending status for a record.

Means if a record is waiting for to be 'Approved/Rejected' with status as 'pending', and if I again click 'Submit for Approval' button,

then it's previous status should be 'rejected' and record should be again send for approval.

Thanks

ministe2003ministe2003

Why would you want to do that?  If something is waiting for approval then it seems a foolish business process to resend through the whole process again, it would possibly mean multple people have to approve the same record multiple times.

 

Trying to resend a record for approval should fail because it has already been sent; I suggest what you should do is just (assuming you are an Admin) is just resend the approval to the person who you are currently waiting to approve, which you can do by clicking the resend link on the approval Related List.