- 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 02:02 AM
Hi @Dinh Nguyen
Change the condition as below and retry -
current.state == 1
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 02:12 AM
Hi @Amit Verma ,
I tried but it still shows "Action not Authorized". I think the problem lies in the State field at the same time updating in Flow Designer and Condition of the UI Action executing.
But i don't know how to fix this. If you have any solution, please suggest me.
Thank you so much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 02:15 AM
Did you created this UI action by copying it from another UI action ? If yes, check the action name field. You get this error when there is an issue with duplicate action name or condition you have placed in UI action.
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 03:17 AM
Hi @Amit Verma,
My UI Action is completely new and I have checked its action name is unique, but it still gives an error. If you have other solution, please suggest me.