Replies: 2 comments 1 reply
-
Is there a possibility to add a slash command which loads a large custom script in the ServiceNow background script text field? My issue is that the current slash command is too long to be pasted as URI with sys.scripts.do. It should be independent of instances like calling a script include. Maybe using the local storage of the pc? I would appreciate if you have a hint for me. Thanks in advance and have a nice day :). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good day :)
It would be convenient to have a slash command to search in multiple tables for a translation.
I have created the following script for this:
Then I use the encodeURIComponent function to get an encoded string which I can paste for creating a slash command.
When I try to insert it as custom slash command the \n get interpreted as newline which result in a wrong script:
I tried escaping the newline but it seems that doesn't work. Do you have any ideas how to proceed from here on?
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions