Running 1 app coming from two different apps

I have an app “A” that can be run from a link in the calendar ap and also from a menu item

The menu and calendar each set a different Global to the app “A”

If I start with the menu it will run app “A” correctly. If I then run from the calendar, it continues to use the Global from the menu. The same problem exists if I run Calendar first.
It seems which ever I run first after starting script case, is the one that will always be passed to “A”.
I need to somehow reset the cache when I run or “hard” reset the Global

I tried sc_reset_global([GLOBAL]); but it did not work

Anyone seen this?

As an alternative solution, I could set the globe inside app “A”, if there were some system method of determining the app I just came from. Is there such a thing?

lewis