web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Launch Resolve Dialog when Finish Button Clicked in Business Process Flow

(0) ShareShare
ReportReport
Posted on by 25

I believe this has asked before, but the most recent was in 2020 ((+) Trigger resolve case dialog when click on button finish in business process flow - Dynamics 365 Customer Service Forum Community Forum

Wondering if there have been any updates that would allow for this to be done more easily. 

Users view having to click "Finish" and then "Resolve Case" as redundant. When a user clicks "Finish" in the BCP I would like to trigger the same command/function that the "Resolve Case" button does. 

I've tried to track down the command via Ribbon Workbench to no avail. 

Having a step in the flow to "Resolve Case" also does not do anything: 

pastedimage1676419985941v1.png

pastedimage1676420020363v2.png

I have the same question (0)
  • jazucco Profile Picture
    25 on at
    RE: Launch Resolve Dialog when Finish Button Clicked in Business Process Flow

    Never mind, user error and proof I shouldn't code too early in the morning.

    When I registered the web resource as an event handler I was calling the onFinishBPF function in the web resource

    Changed it to call the onLoad function and now it is working.

    Many thanks for this solution. My users thank you as well.

  • jazucco Profile Picture
    25 on at
    RE: Launch Resolve Dialog when Finish Button Clicked in Business Process Flow

    This almost works. Unfortunately, it seems that clicking finish does not trigger a reload of the form. 

    When I create the form it triggers the Onload I added an alert to verify:

    pastedimage1676478061050v1.png

    and when I save the form it triggers the Onload. 

    pastedimage1676478121048v2.png

    But when I click finish it does not force Onload, only when I save again. I'm going to see if there is a way to trigger the function from the BPF or force a reload of the page on Finish. 

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Launch Resolve Dialog when Finish Button Clicked in Business Process Flow

    Hello,

    That task looked interesting to me so I decided to investigate and came up with the following code that worked for me:

    function onLoad(executionContext) {
        var formContext = executionContext.getFormContext();
    
        formContext.data.process.addOnProcessStatusChange(onFinishBPF);    
    }
    
    function onFinishBPF(executionContext){
        var formContext = executionContext.getFormContext();
        var status = formContext.data.process.getStatus();
        if (status === "finished") {
            CrmService.IncidentRibbon.CommandBarActions.resolve();
        }
    }
     

    All you have to do is to create a webresource, add the code I provided to it, add it to your form and register onLoad handler.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 100 Super User 2025 Season 2

#2
Suresh Kulla Profile Picture

Suresh Kulla 72 Super User 2025 Season 2

#3
DAnny3211 Profile Picture

DAnny3211 54

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans