Service portal Accouncement/banner

kummara _siva
Tera Contributor

Hi,

I had a requirement that in banner button if I click it will redirect to the page which we defined in announcement table

but I want to create a record in custom table as well. Where I need to configure this.

note: -on click of click in the image

Thanks in Advance.

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @kummara _siva 

 

Try this way

 

AGLearnNGrow_0-1724763053976.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Robbie
Kilo Patron
Kilo Patron

Hi @kummara _siva,

 

This is easily achieved by navigating to 'Announcements' (under Service Portal) as configured and shown below.

 

Please note - this is different from 'Banner Announcements' which is for the Unified Workspace - aka the classic back-end view for the Next Experience.

 

Screenshot 2024-08-27 at 15.16.51.pngScreenshot 2024-08-27 at 15.17.03.pngScreenshot 2024-08-27 at 15.12.09.png

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.



Thanks, Robbie

Thanks for your reply but my requirement is when user clicks on the "example click here" a email should be sent and a record should be created and also it should redirect to page which mentioned in click target type page .

Thanks in advance.

Nadeem Khoury
Tera Contributor

 

Hi Kummara,

First, start by creating your custom table.

Next, create a Scripted REST API. Within this API, use a script to create the record in your custom table, utilizing any query parameters to populate the record with the relevant data.

When the user clicks on the link or button, you can call the Scripted REST API using the href attribute in the anchor tag (<a href>).

If you want to trigger any workflows when a record is created, you can set up a Flow Designer to send emails or implement any additional logic as needed.

I hope this helps!

Thank you.