Notification based off Event with UI Action producing scope error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 11:54 AM
Hello,
I am attempting to create a notification that is fired when clicking on a UI action related link. Our notification sits on the Lifecycle Events Case table and looks as follows:
The Event is configured as follows:
The UI Action is configured as follows:
Everything is configured in the Human Resources Lifecycle Events scope but when testing the link we get the following error message:
The email does not send even though the 2nd message says it does. We have tried building in the Human Resources Lifecycle Enterprise scope but were unsuccessful. Could it be something with the script in the UI Action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 12:09 PM
Hi,
Can you please check if there is any record in the Cross Scope Privileges (sys_scope_privilege_list) table for your application with the status as "Requested"? If yes, set the status to "Allowed" and try to test it again.
From the look of the error message it seems the the application does not have the Cross Scope Access to run the event.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 12:28 PM
The only "Requested" item in Human Resources LifeCycle Events is a script include:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 01:01 PM
Hey,
I just checked the screenshots again and you are using wrong event name in the Ui Action script. The correct name of the event is "sn_hr_le.clearance.start" but you are using "sn_hr_le.onClick.clearance.start". Try removing the .onClick from the name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 08:59 AM
Good catch... that's what happens when you try to move to fast. I was able to fix the error, however the email did not send out. Any idea as to why?