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 :
Dynamics 365 Community / Forums / Human Resources forum / Get Previous Stage Nam...
Human Resources forum

Get Previous Stage Name of the BPF inside Workflow

(0) ShareShare
ReportReport
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:
  • Verified answer
    John Clark Profile Picture
    400 on at

    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

  • apa Profile Picture
    8,284 Moderator on at

    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/]

  • Suggested answer
    Junbin Duan Profile Picture
    35 on at

    Hi John,

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

    Thank you very much,

    Junbin

  • Junbin Duan Profile Picture
    35 on at

    Thank you Antti,

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

    Junbin

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 > Human Resources

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans