Replace keyword/phrase with pre-defined script

JulianP32954866
Tera Contributor

I have not used it for years, but now may have a requirement to.

There is a feature in Servicenow where you can type something like {my_script} into a Script field in servicenow and if configured (and it is this bit I cannot recall) it will lookup the record for my_script and replace that with a pre-defined script.

 

Anyone recall that and what the table / feature is called ?

2 ACCEPTED SOLUTIONS

Bhuvan
Kilo Patron

@JulianP32954866 

 

Below is a sample, you can define a macro in 'syntax_editor_macro' table and can call it during scripting

 

 

Bhuvan_1-1755255650629.png

 

 

Bhuvan_4-1755255816861.png

Bhuvan_6-1755255839768.png

If this helped to answer your query, please accept the solution and close the thread.

 

Thanks,

Bhuvan

View solution in original post

4 REPLIES 4

That's the one I was looking for 🙂
I recalled it, but could not remember it for love nor money

@JulianP32954866 

 

Glad to know it helped đꙂ

 

Thanks,

Bhuvan

Bhuvan
Kilo Patron

@JulianP32954866 

 

Below is a sample, you can define a macro in 'syntax_editor_macro' table and can call it during scripting

 

 

Bhuvan_1-1755255650629.png

 

 

Bhuvan_4-1755255816861.png

Bhuvan_6-1755255839768.png

If this helped to answer your query, please accept the solution and close the thread.

 

Thanks,

Bhuvan