How do I add the GlideFlow library as a dependency to the portal

Phil Wright
Tera Contributor

There is a knowledge article, KB0819725 - that states the GlideFlow library needs to be added as a Widget JS dependency, However, the article goes no further and I need additional direction as how to accomplish this.

1 ACCEPTED SOLUTION

@Pradeep Sharma Widget Dependency i.e. Step 2 above didn't work for me. I have added GlideFlow.js as a JS include on the Service Portal Theme and it worked.

View solution in original post

10 REPLIES 10

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Phil,

Step 1:

1)Navigate to sp_js_include.list
2)Create a new record with the below parameters.
Display name:/scripts/GlideFlow.js
Source: url
JS file URL:/scripts/GlideFlow.js
3)Submit

Step 2:

Navigate to Service Portal->Dependencies

1. Create a new Record with name as GlideFlow, Include on page load value set to true, Portal for page load (Select the right portal page i.e I guess Service Portal) and save the form.

2. Under JS include related list click on edit button and select the record created in step  1.

 

I hope this helps

 

- Pradeep Sharma

 

Hi Pradeep,

Thanks for you help.  This looks pretty straight forward.  I followed these steps and I still get a "GlideFlow is not defined" error.  Any ideas?  I'm attempting to run the GlideFlow.action from a client script on the portal.

 

Again, thanks for the direction on adding a dependency.

Thanks Phil for the update. Could you try cache.do and check again.

Hi Phil,

 

Did you have a chance to read this?