Replicate UI Action Button Behaviour in Project Workspace

Andrew Bettcher
Kilo Sage

Hi,

There is a button that appears in the Risks related list on the Project Form called "Create from Library". When you click it you can add a risk to the project from the risk library. A modal pops up like this:

AndrewBettcher_0-1768486483293.png


I've added a new "Related List Declarative Action" (on sys_declarative_action_assignment) and, to test, I just set it to give me a console log. 


 The button appears in the right place on the project workspace like this:

AndrewBettcher_1-1768486579457.png

But when I click it, I get an error saying Failed to execute action. Please contact your administrator.
This is my declarative action:

AndrewBettcher_2-1768486648924.png



Note that I am not able to select the project workspace in the workspace field. The only option there is "Agent Workspace".

What am I doing wrong?

 

 






0 REPLIES 0