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

Approval History comment without submitting for approval

Hi all,

Is it possible to create an entry in the Approval History related list of an object without actually submitting it for approval?  I'm running an approval process through Apex but in some circumstances I'll know before submitting it that it doesn't require approval and so I do the Final Approval actions manaully in apex code and dont actually submit it for approval, however I'd also like to be able to create an entry in the Approval History section which states that it did not require approval.


Currently I'm using the Status field to display the fact it didn't reqire approval, but if possible I'd like the related list entry too.  I know you can create an approval process and immediately approve it, and that works APART from the fact that the approver receives an email asking him to approve the record, which I don't want to happen in this case.