Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

PrashantLearnIT
Tera Sage

By default, client-callable script includes that do not explicitly set visibility, are public.

glide.script.ccsi.ispublic property is to enable privacy control over all client-callable script includes accessed by public pages.

But when we add this property to false changes their visibility in public pages making all client-callable script includes private. Unable to call those script includes from public pages.

Workaround:

If we want the client callable script include to be accessed by public,

You can change the privacy setting for an individual client-callable script include by adding the isPublic() function in the script include code.

The isPublic() function takes precedence over the glide.script.ccsi.ispublic property. Add the following syntax to the script include before defining function. This workaround enables client callable script includes accessible by public pages.(External user)

  isPublic: function() {
        return true;
    },

Pasted image.png

 

If my content helped you in anyway, please mark this content as BOOKMARK, SUBSCRIBE & HELPFUL

 

Best Regards,

Prashant Kumar (LearnIT)

 

YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant

Blog LearnIT: https://medium.com/@LearnITbyPrashant

Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/

ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635