Hey,
I have a BPF with multiple entities (first stage is on base entity A (="Planungsgebinde"), second too, the third one however is connected to entity B (="Produktionsvariante")).
B has a relation to A via a lookup field.
Everything is working fine, whenever I create an entity A and switch to stage 3, it's asking me to create or select an entity B.
However, when the BPF is already in stage 3 and I open entity A from a list, the BPF is switching to stage 3 like it should, but the form remains on entity A.
It's not opening the correct form of entity B.
I always have to manually click again on stage 3 and only then the BPF seems to understand it's on the wrong form for this step and reloads the page to open entity B's form.
This can't be wanted behaviour. And unfortunately I currently don't see a way to fix this by using Javascript.
Anyone had the same setup maybe and had the same problem?
Tried to show you the problem in the video attached
No problem, let me know if that works as you expected or if you run into any issues.
Thanks @LuisArellano , that's definitely giving me a good way to start.
I already have code inplace to handle some other things for the current selected/active stage (mostly visibility of tabs and sections) so I already have the code to execute "your" code only in the needed stages.
I already thought of a similar way to get the needed record from the current process, but your code will give me a very good start. (6 years Power Platform, but this is now my first major model-driven app 😂)
.
@AlexN you can try adding this function in the on_load event of the "Planungsgebinde" form.
Things to check/replace:
prefix_planungsgebinde - schema name for "Planungsgebinde" table
Hello,
I think that is the correct/expected behavior. When you click on your base entity A, you are requesting the system to see/open that record. Even if that is part of an active BPF process, the system will show you the record you requested but it informs you that this record is in an active BPF showing the active stage.
What have you tried with JavaScript?
stampcoin
17
mmbr1606
15
Super User 2025 Season 1
ankit_singhal
11
Super User 2025 Season 1