The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Content Publishing Script on the button

Sagar Rd
Tera Contributor

HI All,

 

Using the content publishing(Rich Text) I have displayed some information on the portal with a button click. Now how can I get the details of the user who clicked it. Need inputs on how to achieve this.

 

Thank You

5 REPLIES 5

Abhay Kumar1
Giga Sage

@ Not sure if you have user experince analytics and there navigate to esc portal and you can get granular level of data like who visit and what page visited.

Just navigate to servicenow documentation to get more on that just type User experience Analytics.

Hope this will help you.

HI @Abhay Kumar1 

 

I tried the user experience analytics but I could not get much help from their. Could you please specify any way to get the required details.

 

Thank You

Runjay Patel
Giga Sage

Hi @Sagar Rd ,

 

Call one fucntion on click on link and get the logged-in user using gs.getUser();

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

Hi @Runjay Patel 

 

I have built this using the Content Publishing, So not sure where to add the fuction to get the details. Could you please specify more on this.

 

Thank you