G Ponsekar
Tera Guru

Hi @Community Alums ,

 

What is the response and status code you are receiving?

 

 

Not applicable

201

 

Can you use below URL as endpoint and verify again: It worked for me

 

https://dev211559.service-now.com/api/now/attachment/file

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP

 

 

Not applicable

Hi @G Ponsekar ,
i did try it by changing the url but the  "sendAttachements" function not tiggering . see log screenshot.

pradippaul_0-1753260741662.png

 

Hi @Community Alums ,

 

Screenshot is not viewable. Not able to open your screenshot.

 

 sendAttachements function is not triggering means you haven't received "201" status code for incident creation to enter the if statement. or you maybe wrongly passing the parameters for the function

 

Also, In sendAttachements function set Content-Type as well

 

ar.setRequestHeader("Content-Type", "application/json");
 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP