Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Generate BPF stages from lookup table

(0) ShareShare
ReportReport
Posted on by 5

I have a "Projects" entity. It's required to use different BPF depending on "Project type" field value. I can not "hardcode" choosing the relevant stages sequence in BPF logic because stages should be able to edit by a customer: number of stages, name, some custom fields are dynamic. Something like that but actually stages should be generated from "Project Phase Duration" entity

pastedimage1683191467780v1.png

The questions are:

  1. Is it somehow possible to regenerate BPF stages based on lookup table using C# code?
  2. If there are several stages in lookup table and I refer to some fields in stages steps then all stages display field values from the first lookup stage only. How to link displayed stage to relevant lookup record?

Will appreciate any help.

  • RE: Generate BPF stages from lookup table

    Got it. It's a real pity. Thank you, Leah.

  • Verified answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Generate BPF stages from lookup table

    Hi Serhii,

    Current, Dynamics 365 does not support create /update/delete action on "processStage" entity.

    And the following operations can be used with the processstage entity type.

    pastedimage1683610300574v1.png

    https://learn.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/entities/processstage?view=op-9-1 

  • RE: Generate BPF stages from lookup table

    Hi Leah

    My idea is that when user manipulate with "Project Flow Duration" entity the plugin behind should manipulate "processstage" entity creating/updating/removing business process flow stages at BPF meta data level. Not user but code should change stages inside BPF.

  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Generate BPF stages from lookup table

    Hi Serhii,

    Based on your screenshot, the BPF across two entity(Project & Project Phase Duration).

    What does regenerate BPF stages mean?

    If administrator have added stage into one BPF, common users can't customize them through code or other way.

    Maybe you can create two BPF or more, then add different stages you want into it.

    You can use workflow/flow to get or set active stage of the BPF.

    https://crmminds.com/2022/01/05/dynamics-365-set-business-process-flow-stage-automatically-by-using-a-workflow/ 

  • RE: Generate BPF stages from lookup table

    Forgot to attach related lookup table example for picture above

    pastedimage1683191929415v1.png

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans