Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Activate process when Reactivate button is clicked in dynamics 365 V9.1

(0) ShareShare
ReportReport
Posted on by 170

Hi

 I am new to dynamics. I want to reactivate the business process flow if I reactivate the case. Can this be achieved?

Regards

Rupesh 

  • Suggested answer
    capoTincho Profile Picture
    capoTincho 12 on at
    RE: Activate process when Reactivate button is clicked in dynamics 365 V9.1

    I tell you how I archieved this in my case. First of all, I created an optionset field. The options what I needed were "Reopened" and "Finished". Secondly, I made a workflow that switch this field to "Finished" when the status of the case is not active and switch to "Reopened" when is status is again active. Now in a JavaScript, firstly, I validated if the case is "Reopened" and the status process is finished, I switched the business process flow status to active. I got it with formContext.data.process.setStatus("active"). This is what reactivates the business process flow. I found it in this page https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/dn817878(v=crm.8)?redirectedfrom=MSDN#setstatus

    Hope this helps you!

    Regards

  • Rupesh Kumar Gupta Profile Picture
    Rupesh Kumar Gupta 170 on at
    RE: Activate process when Reactivate button is clicked in dynamics 365 V9.1

    Thank you Mustafa,

     I do not want to click Reactivate case and Reactivate process. This will make 2 event. I just want to click on reactivate case and using some javascript or workflow I want to activate the process as well. Can it be done?

  • Suggested answer
    RE: Activate process when Reactivate button is clicked in dynamics 365 V9.1

    Hi Rupesh,

    Yes, you can reactivate the BPF once the record is in Active state. On the command bar, you will see a "Process" flyout button under which you will see the "Reactivate" button.

    I am sharing some documents which talks about BPF overview.

    docs.microsoft.com/.../business-process-flows-overview

    crmbook.powerobjects.com/.../

    Thank you,

    Mustafa Sabir

    Support Engineer - Microsoft Dynamics CE

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans