3
Views
4
Comments
How to get the original URL in an Exception Handler in a Screen Flow
Question
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
2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Hi Justin, checking the automagically generated exception handling in a v8 app, it seems that there's a GetExceptionURL() that should do the trick.
2022-11-12 11-28-30
Gonçalo Martins
Staff
Hi guys,
Indeed you can use the GetExceptionURL() method to it.
Good luck Justin.

Regards,
GM

2019-11-12 17-31-26
Justin James
 
MVP
We're on 7, I'll see if that's in there too.

Thanks!

J.Ja
2019-11-12 17-31-26
Justin James
 
MVP
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
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.