call a widget from another widget

Avik Kumar Dutt
Tera Contributor

How to call a widget from another widget in servicenow portal?

Thanks and Regards in advance.

5 REPLIES 5

Jyoti8
Kilo Guru

Hi Mark,

Refer to these links, I hope it helps.

https://community.servicenow.com/community?id=community_question&sys_id=ea83c365dbd8dbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=b1c08b65db98dbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=275b0b21db9cdbc01dcaf3231f96...

 

If my reply helps you at all, I’d really appreciate it if you click the Helpful button and if my reply is the answer you were looking for, it would be awesome if you could click both the Helpful and Accepted Solution buttons..:)

Thanks

Harsh Vardhan
Giga Patron

kindly have a look on below blog.

 

How to communicate between widgets in Service Portal 

 

 

Mike Patel
Tera Sage

HTML

<div>
  <div>
<sp-widget widget="data.example"></sp-widget>
  </div>
</div>

Server

data.example = $sp.getWidget('anotherwidgetid', {});

Thank you