Getting {"result":{"code":400,"error":"Attribute: '' is missing in payload."}} in Outbound REST call

maneesh3
Tera Contributor

Hi Team,

 

I am working on to send outbound message to Servicenow instance through REST API. Configured below Outbound api and business rule , and getting error:    {"result":{"code":400,"error":"Attribute: 'sys_class_name' is missing in payload."}}

 

 Outbound:

maneesh3_0-1733136301079.png

 

Business rule:

 

maneesh3_1-1733136342276.png

 

 

No clue still getting error:  

maneesh3_2-1733136383585.png

 

Please help to overcome issue.

 

 

Thank you!

 

10 REPLIES 10

Hi @Runjay Patel 

 

Please help with above if anything can be done

 

thank you 

Hi @maneesh3 ,

 

try testing it with from REST message.

RunjayPatel_0-1733297748255.png

 

Hi @Runjay Patel 

 

Tested with REST Message option still receiving same error 400 with sys_class_name issue, but when we tested by giving static content like below I am not getting any error and update is successful:

 

maneesh3_0-1733306783857.png

 

Hi @maneesh3 ,

 

It means, there is no issue on API side, class name value is not getting properly substituted. Try passing static value from code as well. 

test like below, don't give static value directly.

RunjayPatel_0-1733307537591.png

 

Hi @Runjay Patel 

 

Given like below:

 

maneesh3_0-1733312361281.png

 

with same error in result:

 

maneesh3_1-1733312404743.png