table name missing error in attachment rest API

Pushpendra1
Tera Contributor

I am working on a incident Servicenow-Servicenow ebonding. When i am trying to send the attachment from one instance to other i am getting error in the resonse code-"{"error":{"detail":null,"message":"Missing parameter: table_name"},"status":"failure"}"

I have written a BR on sys_attachment table-

Please find the REST message below-

7 REPLIES 7

Hitoshi Ozawa
Giga Sage
Giga Sage

Code and settings seem alright. Have you tested it from REST Message?

vkachineni
Kilo Sage
Kilo Sage

Can you log the request body before the execute

 

var body = request.getRequestBody();

gs.log("Sending request  = " + JSON.stringify(body), "@@TESTING");

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022

HI vkachineni,

I tried and got the below null response-

Sending request = null

What can i do rectify this. IT seem no request body is empty.

Hi, I'm having the same issue.  Were you able to resolve this?