Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

What is the ScriptingGeneratorFactory?

e_wilber
Tera Guru

Long story short, I am learning Recommended Actions and trying to build one but I am stuck at the step where you use a generator to use a script.

 

e_wilber_0-1722877576587.png

 

How do you create a script include for this? It's not a standard script include because an OOB example is

e_wilber_1-1722877639638.png

 

All the documentation says is "You must create an implementation of the scriptinggeneratorfactory template to use a script include on https://docs.servicenow.com/bundle/washingtondc-customer-service-management/page/product/customer-se... and there are no examples. Has anyone set one of these up before know how to create a proper SI for this?

9 REPLIES 9

Ramneet Arora
Tera Contributor

Hi,

 

Did you ever find a solution / Scripting Template Factory template ?

I'm working on creating a resource generator from a script as well.

 

Thanks & Regards,

Ramneet Arora

alan_gross
Tera Contributor

I'm struggling with the same issue.

I have raised a question to ServiceNow Support and they redirected me to Professional Services because they consider it a customization. (while I consider it rather a very badly documented feature).

Did you succeed with this?

 

Hi Alan,

 

I'm still looking for more info on this topic as well.

 

Thanks & Regards,

Ramneet Arora

I just got this working for myself.. i will put together a quick write up on how to do it in the next day..Quick version is I had to run script debugger to find out why it wasnt working (turns out on top of creating the script and resource generator, there is an Extension Instance table (sys_extension_instance) that you need to link your script include to sn_nb_action.ScriptingGeneratorFactory. i have attached a screenshot to see that part and will update in here with the details either tomorrow or by friday with step by step for a scripted resource generator.

 

Screenshot 2025-06-25 at 9.08.43 PM.png