Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Embedded widget is not working

hemalathahe
Tera Contributor

Hi Everyone,

I'm trying to call "app_notifications" widget from /ASC portal >> Theme >> Header.

And "app_notifications" widget in custom scope and Header is in 'Alumni service center" scope.

I see "app_notifications" widget is not loading/showing in the /asc portal, could you please help me.

 

Here is my code, I tried all these 3 methods but no luck

1.

Html:

<div class="notifications-list dropdown-menu " role="menu">
<widget id="app_notifications"></widget> 
</div>

 

2. 

Html:

<div class="notifications-list dropdown-menu " role="menu">
<sp-widget widget="app_notifications"></sp-widget>
</div>

 

3.

HTML:

<div class="notifications-list dropdown-menu " role="menu">
<sp-widget widget="data.appNotification"></sp-widget>
</div>

 

Server side code:

data.appNotification= $sp.getWidget("app_notifications");
0 REPLIES 0