How to make server action in library appearing as a widget like "Raise Exception"

I created a library and it has some server actions 

I need when I take a reference from library in a consumer 

I need to add server action in toolbox as a custom widget like "raise exception"


Hi Nahla, 

I don't know how to create a  widget like that, but can point you a work around : 

Create an User Exception for each action (you have to do that in each module as the exceptions cannot be public) 

Create an Exception handler  for each User Exception and use the corresponding action in the Exception handler. 

Hope this gives you some ideas

Graça

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.