Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Call script include from catalog builder

matthew_magee1
Giga Guru

We are considering offering catalog builder to our service owners for them to maintain their own items. Pretty simple.

However, we want to limit the catalog items they can edit based on the catalog template>Available For.

I've written a script that works great (ran in background script), it returns the catalog item sys_ids that the user logged in can see.

However, when I try to apply it to the filter of the catalog builder, I'm not able to hit the script include.

My filter looks like this:

 

Sys ID IS ONE OF javascript: scriptInclude().function()

 

I threw in some log statements in the script but the result I get is:

Sys ID in undefinded

 

Is this doable? Maybe I'm overthinking this

5 REPLIES 5

Hi Matthew,

Any luck with your requirement? How you achieved?