Good morning,
I currently control Opportunity completion and business process flow only when the Opportunity meets a certain condition.
However, the Opportunity is won but the Finish button is only finished if I click manually, is there any way to finish either via trigger or javascript?
Hello, I recommend you to use the formContext functions, for example: formContext.data.entity.save("saveandclose");
Check this link that contains many examples, check which one works better for you according to what you need:
rkcrm.wordpress.com/.../
Thanks!
Community Support Team - Esteban
If this Post helps, then please consider Accept as solution to help the other members find it more quickly.
Hi,
You can use formContext.data.process.setStatus(status, callbackFunction) function. The status can be active, aborted, finished, or invalid. Please refer to the documentation:
docs.microsoft.com/.../setstatus
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Daniyal Khaleel 156
DAnny3211 89
Tom_Gioielli 74 Super User 2025 Season 2