Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Justin James
MVP
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
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.
Gonçalo Martins
Staff
Hi guys,
Indeed you can use the
GetExceptionURL() method to it.
Good luck Justin.
Regards,
GM
Justin James
MVP
We're on 7, I'll see if that's in there too.
Thanks!
J.Ja
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 Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...