How to get the original URL in an Exception Handler in a Screen Flow

How to get the original URL in an Exception Handler in a Screen Flow

  
Hello -

I'm having a bit of a struggle here. If you use the built-in role permissions for screens, when a user without the correct role accesses it, it throws a Security Exception which is handled by the Screen Flow. In the Screen Flow, we have the Exception Handler and it points to a page. But it looks like it does a full redirect to that page, so GetURL does not know the originally requested URL.

How do I find that out?

The problem is if a session times out (we are not using persistent login), the error handler takes them to our login page, but our login page has no idea where they should go after that to return them to their workflow.

Any suggestions?

Thanks!

J.Ja
Hi Justin, checking the automagically generated exception handling in a v8 app, it seems that there's a GetExceptionURL() that should do the trick.
Hi guys,
Indeed you can use the GetExceptionURL() method to it.
Good luck Justin.

Regards,
GM

We're on 7, I'll see if that's in there too.

Thanks!

J.Ja
Wow, do I feel silly! I was looking this whole time for an Action I needed to make a reference to, it was a built-in...

This did the trick, thanks!

J.Ja