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
kprkpr 

Prevent resubmission of an approved record

Hi,

 

I have a use case, wherein, if an opportunity record is approved once, the user shouldn't be able to submit it again for approval.

 

Standard functionality allows resubmitting an approved record.

 

I know I can prevent it if I use Apex to submit the Approval. But then I'd have to develop custom page too. I want to leverage the standard page and functionality, but want this extra feature. 

 

Can anyone suggest a method with standard functionality to do it?

 

Thanks in advance

Message Edited by kpr on 09-23-2009 08:44 PM
Best Answer chosen by Admin (Salesforce Developers) 
kprkpr

I was thinking through this and suddenly the solution splashed to me!

 

I created a picklist field called 'Approval_status__c'with values 'approved' and 'rejected'.

From the approval process, I used field update final action to update the field value to 'approved' upon approval and 'rejected' upon rejection of the record.

 

I put the entry criteria as 'Approval_status__c' not equal to 'approved'!

 

That's it. So simple!

 

I thought this might save the time for anyone with a similar problem.Hence sharing.