Hi,
I have 2 Business Process Flows in my Organization : Both Cross-Entity.
First: Lead>>Account>>Opportunity>>Quote.
Second: Account>>Opportunity>>Quote.
On the Account entity i have two forms:
Form Account A
Form Account B
I Have a Javascript with a rule to change the Account form, after onLoad based on a field value.
The Scenario:
1- Open a existent Account on Form B.
2- Close this form
3- Go to Sales>Lead> Open Form to create a new Lead.
4- The lead Form open with the First BPF: Lead>>Account>>Opportunity>>Quote.
5- I fill the required fields and go to the next Stage : Account.
6- When Account Loads, The form Loaded is the last opened, in this case the form B(native behavior of CRM 2015 with IE), independent of the "Form Order" defined on the entity forms.
7- My Javascript at onLoad, identify that isn't the desired form, and change to the form A.
8- The screen refreshes and the result are doubly wrong:
a) The business process flow loaded is Account>>Opportunity>>Quote, instead, the correct BPF Lead>>Account>>Opportunity>>Quote.
b) My field data are "missed" (No visible on UI, and no returned with Xrm.Page.getAttrbute("prefix_fieldname").getValue()).
The form loaded have the fields cleaned, as if were a new creation form.
And to complete the strange behavior, at this moment, if i do a forced refresh (F5 or CTRL+F5), the form loaded is the form A, the BPF loaded after that is the correct: Lead>>Account...
AND, my data filled on the lead appear again, correctly at the account stage.
Someone have a solution to doesn't miss the data filled after change form?
Or another workaround to differ the initial creation form at account from the form faced at the step 8 described here.
Thanks in Advance,
↧
Field data and Business Process Flow missed after change form with Javascript CRM2015
↧