Ui Builder - Script Includes

Community Alums
Not applicable

Hi All,

 

Does script includes in UI Builder won't support GlideRecords?

 

Thanks,

Raghu

1 ACCEPTED SOLUTION

@Community Alums 

No, you will only have client side script inlcudes, can't use GlideRecord.

Below article should be helpful:

https://www.servicenow.com/community/developer-forum/how-to-use-script-includes-in-ui-builder/m-p/2510525

Best Regards
Aman Kumar

View solution in original post

3 REPLIES 3

Aman Kumar S
Kilo Patron

Hi @Community Alums 

Below details should help:

CLIENT SCRIPT INCLUDES

As a long-time ServiceNow developer when I hear the term script include I automatically think “server-side reusable script”, but in UI Builder only half of that is true. Client Script Includes [sys_ux_client_script_include] in UI Builder are reusable client-side scripts that can be called from any client script. As you scale your Now Experience UI Builder pages I think these client script includes will come in handy, and you should treat scripting in UI Builder like anywhere else on the platform where you make your scripts modular and reusable.

Ref link

https://developer.servicenow.com/blog.do?p=/post/quebec-ui-builder-client-scripts/

 

 

Best Regards
Aman Kumar

Community Alums
Not applicable

Hi Aman,

Thanks for the update. I've gone by this blog already. Does this mean UI Builder Script Include doesn't support GlideRecord()?

Thanks,

Raghu

@Community Alums 

No, you will only have client side script inlcudes, can't use GlideRecord.

Below article should be helpful:

https://www.servicenow.com/community/developer-forum/how-to-use-script-includes-in-ui-builder/m-p/2510525

Best Regards
Aman Kumar