The CreatorCon Call for Content is officially open! Get started here.

Server JavaScript error Cannot find function getGuide in object com.glide.service_portal.widget.fencing.ScopedSPScriptable@11e58d3.

sana11
Kilo Guru

Hi All, I have cloned sc order guide widget for my portal in scoped application ,I am getting 'Cannot find function getGuide in object' error.

 

find_real_file.png

Is there any other alternatives for getGuide in scoped application ?

Thanks in Advance!

5 REPLIES 5

Hey Tom,

The process here is that whenever you are cloning any widget or page in portal then you need to first see that what is default scope of that page and widget. And when you clone them and do some modifications and make them live on the portal that time those pages and widgets should be in same scope.

For example, In homepage I had to modify take survey widget. So now my homepage is in global scope but the take survey widget is in some other scope. So when I m cloning the take survey widget I have to be in the scope of widget and while I am adding it back to the page then I have to be in the scope of that page (in this case it was global).

So there are chances that your page is in some other scope but the widget you have been working on could be in some different scope.

 

Please mark this helpful if it helped you.

Thanks,

Mohit Kaushik

Community Rising Star 2022

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)