cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1119
Views
0
Helpful
3
Replies

xAPI Macro to ServiceNow from Touch 10

cwade23
Level 1
Level 1

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!!

 

 

 

3 Replies 3

cwade23
Level 1
Level 1

....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

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.

Wayne

Please remember to mark helpful responses and to set your question as answered if appropriate.

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.