locked
Navigate screen flow with JavaScript RRS feed

  • Question

  • Hi Everyone,

    I am working on a business process in a Dynamics 365 instance which involves moving across several entities. Our process is way too complex to cover it with OOB business process flows, so I decide the next step in plugin logic, then navigate to corresponding screen with Xrm.Utility.openEntityForm(). The catch is that when the user clicks save&close on a record, I want him to return to the view where the flow started (out of the box the user is navigated to the previous screen opened, which is no longer relevant). What I have in mind is to capture the generated screen id, store it in the user session, then navigate there on save&close like this:

     window.location.href = 'main.aspx#63463424';

    For some reason the above method does not work and the current screen is reloaded instead.

    Any workarounds for this?

    Thanks,

    Adam

    Wednesday, October 18, 2017 11:00 AM