I am changing business process on load based on a field but the form loads then the business process loads. Anyone have any ideas on how I can load both at the same time. I just do not like the delay when loading the business process. I assume this is happening because I need the field value before the business process can switch. Can I get the field value before the form is done loading so I can initiate the business process load ealier?
Thanks
So you changed your code, just like I suggested.
Step 1 : Create a workflow that runs on create, if lookup equals a value then set process.
Step 2 : Create a JS Web Resource that runs on change of created on field (Xrm.Utility.openEntityForm("entitynamehere", Xrm.Page.data.entity.getId());)
Note: I created a web resource that hid the BPF if the form type was create and showed it if the form type was update as to not confuse users. (formType (1) = create / formType (2) = update)
See this is the problem with this forum to many people jump to the conclusion that things can’t be fixed. I fixed it. I will post the solution. All that was needed was a workflow and a single line of JS.
I agree with Wayne.
You cannot modify the load order. At least not in a supported way.
Yes, the way to fix the problem is to change your code.
There is always a way fix a problem so I am sorry but I do not accept this as an answer. Thank you for reply though. I mean no disrespect. Maybe my proposed solution/problem is incorrect any out of the box thinking would be helpful.
No, you can't alter the order of how items load, only Microsoft can do that. You will need to change the behavior of your code to respect load order.