Notification based off Event with UI Action producing scope error

aguanci
Tera Expert

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:

aguanci_0-1691088460571.png

 

The Event is configured as follows:

aguanci_1-1691088626000.png

 

The UI Action is configured as follows:

aguanci_2-1691088687020.png

 

 

Everything is configured in the Human Resources Lifecycle Events scope but when testing the link we get the following error message:

aguanci_3-1691088754513.png

 

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? 

 

5 REPLIES 5

Sahil Dhadwal
Tera Guru

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.

The only "Requested" item in Human Resources LifeCycle Events is a script include:

aguanci_0-1691090860075.png

 

Sahil Dhadwal
Tera Guru

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.

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?