- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 01:06 AM
Hello everyone,
I have an issue displaying the info message "Action not Authorized" when clicking an UI Action and this UI Action calls a sub-flow. In the sub-flow there is update the value of the field "State". If the condition of UI Action check field "State", it will get an "Action not Authorized" error.
Can someone please help me to fix this problem.
Thank you so much.
My UI Action configure:
Script Include for call Sub-Flow:
Sub-Flow configure:
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 06:56 AM - edited 10-09-2024 07:03 AM
@Dinh Nguyen I found the root cause. The issue is really your condition. That's why:
- A client UI Action is called 2 times when using gsftSubmit and each time the condition is evaluated.
You have now three options:
- Make this UI Action to a Server side UI Action (client false, no use of gsftSubmit, Script Include not Client Callable)
- Don't set State in your flow you can do this finally within your function runServerSideCode within UI Action with current.state = 2;
- Remove gsftSubmit and all from line 14 following. Replace Line 9 with action.setRedirectUrl(current); See screenshot:
Daniel
Please mark reply as Helpful/Correct, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 06:56 AM - edited 10-09-2024 07:03 AM
@Dinh Nguyen I found the root cause. The issue is really your condition. That's why:
- A client UI Action is called 2 times when using gsftSubmit and each time the condition is evaluated.
You have now three options:
- Make this UI Action to a Server side UI Action (client false, no use of gsftSubmit, Script Include not Client Callable)
- Don't set State in your flow you can do this finally within your function runServerSideCode within UI Action with current.state = 2;
- Remove gsftSubmit and all from line 14 following. Replace Line 9 with action.setRedirectUrl(current); See screenshot:
Daniel
Please mark reply as Helpful/Correct, if applicable. Thanks!