Skip to main content

Notifications

Dynamics 365 Community / Forums / Human Resources forum / Get Previous Stage Nam...
Human Resources forum

Get Previous Stage Name of the BPF inside Workflow

Posted on by 35

Hello,

I developed a Business Process Flow and a Workflow for my custom entity Project, and was expecting the workflow to be triggered by stage moves of the BPF. It does.

1373.Workflow.gif

However in the steps of the workflow, when I tried to get the stage name as a condition, the stage name was the stage before move, not the target stage. How do I get the target stage name (after click the Next/Previous stage) button? The stage name was automatically generated like: Stage Id (Process Stage):Process Stage Name.

2072.WorkflowSteps.gif

Thank you in advance for helping me out.

Junbin Duan

Categories:
  • Junbin Duan Profile Picture
    Junbin Duan 35 on at
    RE: Get Previous Stage Name of the BPF inside Workflow

    Thank you Antti,

    That is very helpful. I will keep it in mind.

    Junbin

  • Suggested answer
    Junbin Duan Profile Picture
    Junbin Duan 35 on at
    RE: Get Previous Stage Name of the BPF inside Workflow

    Hi John,

    That is wonderful. I created a workflow linked to the Business Process Workflow, and it worked great. 

    Thank you very much,

    Junbin

  • apa Profile Picture
    apa 8,282 on at
    RE: Get Previous Stage Name of the BPF inside Workflow

    John pretty much says it and the thread behind the link is very good. Junbin I can see that you use StageId in the workflow so I highly recommend reading this article as well:

    [View:https://blogs.msdn.microsoft.com/crm/2017/07/30/how-to-determine-which-business-process-flow-bpf-instance-is-shown-when-a-record-is-opened-2/]

  • Verified answer
    John Clark Profile Picture
    John Clark 400 on at
    RE: Get Previous Stage Name of the BPF inside Workflow

    Hi Junbin,

    I’d recommend creating a workflow that runs against the BPF entity, rather than your custom entity. See my responses to the following post community.dynamics.com/.../262449

    Cheers,

    John

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,867 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,173 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans