how to call/ show the custom widget on the workspace or on dashboard

Tejas Adhalrao
Tera Guru

how to call/ show the custom widget on the workspace or on dashboard

6 REPLIES 6

yashkamde
Tera Guru

Hello @Tejas Adhalrao ,

 

1) In server side you can use - for fetching data

$sp.getWidget('widget_id')

 2) And in HTML Template render this :

<sp-widget widget="data.customWidget"></sp-widget>

 

If my response helped mark as helpful and accept the solution.

Hi @yashkamde  ,

thanks for your response  can you please share more details solution where to add this scripts with screenshots.

Yes sure @Tejas Adhalrao ,

 

-> Add this script in the portal widget configuration section :

Screenshot 2026-02-10 102228.png

 

 

And this will result in embedding your custom widget into another widget :

Screenshot 2026-02-10 102441.png

 

 

If my response helped mark as helpful and accept the solution.

SohamTipnis
Tera Guru

Hi @Tejas Adhalrao,

 

You can use this link; this will get your answer:

https://developer.servicenow.com/dev.do#!/learn/courses/zurich/app_store_learnv2_reportanalytics_zur...

 

For Performance Analytics:

https://developer.servicenow.com/dev.do#!/learn/courses/zurich/app_store_learnv2_reportanalytics_zur...

 

If you find my answer useful, please mark it as Helpful and Correct â€ŒðŸ˜Š


Regards,
Soham Tipnis
ServiceNow Developer ||  Technical Consultant
LinkedIn: www.linkedin.com/in/sohamtipnis10