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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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.

I have the same question (0)
  • Serhii Kharchenko Profile Picture
    5 on at

    Forgot to attach related lookup table example for picture above

    pastedimage1683191929415v1.png

  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at

    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/ 

  • Serhii Kharchenko Profile Picture
    5 on at

    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.

  • Verified answer
    Leah Ju Profile Picture
    Microsoft Employee on at

    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 

  • Serhii Kharchenko Profile Picture
    5 on at

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans