Hello everyone,
.
For Account entity, I have created
- 2 forms called : formA, formB
- 2 business process flow (BPF)
On formA : I have a hanlder for OnLoad event which will set the correct BPF according to the Account type.
I use the standard function to set the active process :
Xrm.Page.data.process.setActiveProcess(processId, callbackFunction);
This works fine, when the function setActiveProcess is executed, the BPF is applied correctly and the form reloads to reflect the changes.
However, it doesn't work as expected in the following scenario
- The user opens the record with formB at the beginning
- Then user selects formA
- The script OnLoad on formA is executed -> setActiveProcess is called -> the form is reload
BUT, it loads formB instead formA, it should not be the case, the expected behavior is that it should reloads formA which is the current selected form, not formB (which is the previous one)
.
Has anyone experienced this issue yet? Is there any way that I could clear the 'cache' that stores the previous selected form?
I have Dynamics 365 Updates 2.2 installed.
.
Thanks for your help,
Kim Anh