+ Start a Discussion
Bikram K BhuyanBikram K Bhuyan 

Triggering the approval process from JavaScript in Lightning Web Component

Hello Experts,

I have a quick question on approval process and I would like to get your suggestion on how to implement this particular requirement.

We are developing a custom lighting web component for our application and we have a requirement to trigger the standard approval process on the click of custom link from that component. The expectation is that - it should follow the exact flow as it would, if I click on the Standard "Submit For Approval" link from the custom actions present on the object.

I found some article on how to trigger the approval process from the apex code, but not finding any resources on how to do it from the client side JavaScript.

Could you please suggest if any of you have solved this particular requirement on your project?