Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

I am changing business process on load based on a field but the form loads then the business process loads. Can this be fixed?

(0) ShareShare
ReportReport
Posted on by 200

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

  • Wayne Walton Profile Picture
    Wayne Walton 13,728 on at
    RE: I am changing business process on load based on a field but the form loads then the business process loads. Can this be fixed?

    So you changed your code, just like I suggested.

  • Verified answer
    whatup Profile Picture
    whatup 200 on at
    RE: I am changing business process on load based on a field but the form loads then the business process loads. Can this be fixed?

    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)

  • whatup Profile Picture
    whatup 200 on at
    RE: I am changing business process on load based on a field but the form loads then the business process loads. Can this be fixed?

    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.

  • C. Jensen Profile Picture
    C. Jensen 384 on at
    RE: I am changing business process on load based on a field but the form loads then the business process loads. Can this be fixed?

    I agree with Wayne.

    You cannot modify the load order. At least not in a supported way.

  • Wayne Walton Profile Picture
    Wayne Walton 13,728 on at
    RE: I am changing business process on load based on a field but the form loads then the business process loads. Can this be fixed?

    Yes, the way to fix the problem is to change your code.

  • whatup Profile Picture
    whatup 200 on at
    RE: I am changing business process on load based on a field but the form loads then the business process loads. Can this be fixed?

    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.

  • Wayne Walton Profile Picture
    Wayne Walton 13,728 on at
    RE: I am changing business process on load based on a field but the form loads then the business process loads. Can this be fixed?

    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.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans