How to create UI Button or Link in Service Portal??

anubhavr
Giga Expert

I want to create "Resolve", "Update" and "Close Incident" button or link in Service Portal for User to able to Resolve or Update or Close there own Incidents. There is no such option OOTB in Portal. How can I create Buttons or Links in and Portal page or widget. Please Answer with example code or little explanation.

6 REPLIES 6

Deepa Srivastav
Kilo Sage

Hi ,



There is a link-button widget, you can check that.


Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.


find_real_file.png


Thanks Deepa.



This is helpful. Can you tell me how to use this button. Like when we click the button some line of codes or scripts should run. For example I want to create a button "Resolve", when the Resolve button is clicked Incident should be automatically resolved. OR   I want to create a button "Close", when the Close button is clicked Incident should be automatically closed.


Hi Anubhav,

 

Have you created these buttons on service portal?

philengles
Giga Expert

Hello Anubhav Ritolia,


  I would make sure that you are navigating to the correct page. Notice I have highlight my url and how you should structure yours. Obviously use your own instance and sys_id that you are trying to navigate to. I just created a UI action to see how it would look and you can see for yourself. I created this UI action the same way that you create UI actions on the backend.



find_real_file.png