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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to get/capture Business Process flow stage selection event

(0) ShareShare
ReportReport
Posted on by

Hi All,

Scenarion: I am working on MS CRM 2013. I have an opportunity entity form on which there are multiple tabs. Opportunity Entity has my custom Business process flow. When i click on one business process flow stage i need to show only one tab and other should be hidden. I explored to find Business process flow stage events,

I got addOnStageSelectedaddOnStageChange methods but it is available in MS CRM 2015. Then i tried to achieve this functionality by jQuery, but i cannot reached to stage div because it is in Iframe.

Is it possible through jQuery? How can i achieve this functionality? or there is any other way.

I am beginner to MS CRM. So please direct me for this. If anyone provide me any example then it will be more better for me.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mithilesh Kumar Profile Picture
    10,047 on at

    Hi Javed,

    This can be done using a field called "staged" which stores the GUID of the current stage. Retrieve the value using JScript.

    Here is an example

    www.fmtconsultants.com/.../business-process-flows-in-dynamics-crm-2013-hidingshowing-a-section-based-on-the-current-stage

    Hope that helps

    Thanks

  • Community Member Profile Picture
    on at

    Hi Mithilesh Kumar,

    Thanks for Reply. I tried out this way as you suggested in link. It works only for stage which is active. My scenario is that, when I will click on any stage of Business process flow then according to stage clicked i have to hide/Show below form tabs. Here in above link example it always compare with stage which it active(selected).

    Kindly suggest me any way.

  • svignesh Profile Picture
    347 on at

    create an onformload function and attach it to the form load event of the form, and attach function to be called when the stage is selected or changed

    function onFormLoad(){
    Xrm.Page.data.process.addOnStageSelected(attachHandler);
    Xrm.Page.data.process.addOnStageChange(attachHandler);
    };


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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans