If the Entity Screen changes when user switches to a Department mapped to a specific screen for that user, the passed parameter [:PreviousEntityScreenName] is empty.
In every other case the [:PreviousEntityScreenName] is being passed into an “Entity Screen Changed” rule correctly.
I have a global rule which stores the last active screen in a local setting. This is used in a “Close” rule to navigate the user back to the previous screen. This is very convenient where an Entity Screen is displayed in different flow contexts.
To debug strange navigation behavior i inserted a Display Popup action in the global “Entity Screen Changed” rule and see that [:PreviousEntityScreenName] is returning an empty string when switching Departments. [V5.1.62]