Script utility for quickly generating glide.mlpredictor.option.nlu.authoringModel.version.override valuesSummaryExpanding on KB0858445, this article provides users a script that can be used to quickly print out the json value required for glide.mlpredictor.option.nlu.authoringModel.version.override Doing this manually can be tedious and hard to complete correctly.Instructions1. Copy the script below and paste it into a text editor 2. Navigate to sys_nlu_model 3. Filter on the NLU Models you wish to include in glide.mlpredictor.option.nlu.authoringModel.version.override 4. Copy that encoded query from the filter made in step two (https://docs.servicenow.com/en-US/bundle/tokyo-platform-user-interface/page/use/using-lists/task/t_GenEncodQueryStringFilter.html) 5. Paste the encoded query, replacing the value for the field nluModelsEncodedQuery 6. Adjust the 'build' field to your desired build version 6. Run this script (sub-production only) via Scripts - Background. 7. We can use this value in the property glide.mlpredictor.option.nlu.authoringModel.version.override 8. If this property does not exist, you can create it following the steps defined in KB0858445 (https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0858445) /* Input Values: nluModels (string): encoded query on sys_nlu_model containing the NLU models that need version overriden version (string): desired NLU version for the models specified above version: Paris: '2.1.2-HYB', Quebec: '3.1.2-HYB', Rome: 'rome.0', SanDiego: 'sandiego.0', Tokyo: 'tokyo.0', *Utah onward should follow the same naming convention continued in Rome+* -How to get an encoded query through a filter in the UI: https://docs.servicenow.com/en-US/bundle/tokyo-platform-user-interface/page/use/using-lists/task/t_GenEncodQueryStringFilter.html -List of NLU Models: instance_name.service-now.com/sys_nlu_model_list.do Limitations: -Admin role is required -Subproduction use only (created property can be created in an update set and propagated to production) -This script is restricted to one build version per-run -example: if you have two sets of NLU models that you wish to update to two separate build versions we will need to split these into two sets of NLU models into two separate encoded queries then run the script for each encoded query and the corresponding build version for that list of nlu models */ const nluModelsEncodedQuery = 'NEEDS_TO_BE_REPLACED'; const build = 'rome.0'; //replace with build of your choice, options defined above var propertyValue = gs.getProperty('glide.mlpredictor.option.nlu.authoringModel.version.override'); if(propertyValue == null){ var gr = new GlideRecord('sys_properties'); gr.initialize(); gr.name = 'glide.mlpredictor.option.nlu.authoringModel.version.override'; gr.type = 'string'; gr.value = '{}'; propertyValue = gr.value; gr.insert(); } propertyValue = JSON.parse(propertyValue); var nluModelGr = new GlideRecord('sys_nlu_model'); nluModelGr.addEncodedQuery(nluModelsEncodedQuery); nluModelGr.query(); while(nluModelGr.next()){ propertyValue['language.' + nluModelGr.name] = String(nluModelGr.language); propertyValue['version.' + nluModelGr.name] = build; } propertyValue = JSON.stringify(propertyValue); gs.print(propertyValue);