11-01-2021 11:32 AM
Greetings
I have followed the script that was posted on GitHub to create a Report an Issue button on the Touch 10 that integrates with ServiceNow to create an incident ticket
I have the macro loaded but I keep getting the error: URL not allowed by rule
I have attached the .txt file for review
Can anyone please take a look at the macro and let me know where i am going wrong?
Thank you!!
11-01-2021 04:42 PM
....update!
I am now past the initial error but have a new error: 'Unhandled promise rejection' [TypeError: cannot read property 'Value' of undefined]
Now I am not sure where in the macro I have an undefined value
07-02-2025 07:30 PM - edited 07-02-2025 07:33 PM
On the line
var serviceNowIncidentURL = serviceNowIncidentLocation.Value;
you have used "Value" with a capital "V", whereas the rest of your code you use "value" with a lowercase "v". Perhaps that is the cause of the error.
Edit: Sorry, I hadn't seen the date of the original post - it popped up in the list due to the unrelated issue posted as another reponse. I certainly hope that you'd managed to solve your issue before now given the post was nearly 4 years ago.
Please remember to mark helpful responses and to set your question as answered if appropriate.
06-17-2025 05:13 AM
Hey cwade.
My company uses service now as a platform and i'd be interested in seeing more what you do for this program so. If you don't mind me using it. Newbie for programming here.
I'm also having an issue with Unhandled promise rejection: {"code":-32602,"message":"Bad usage: Missing or invalid parameter(s)."}
for a button that sends a message to a teams channel. Just a basic one at this point but I think we are both having the same issue. If you figure it out, PLEASE let me know this is frustrating as I am searching the web for anything that is remotely helpful to solve the problem and you have been the closest so far lol.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide