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

Najmuddin Mohd
Mega Sage

Hi @maneesh3 ,

Can you also pass the classname dynamically as current.sys_class_name.
Incident is in Global and Rest Message is in Customer service. 
May be any cross scope issues.

If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.

Hi Najmuddin,

 

Thanks for reply. but still getting same error after updating BR to dynamic for sys_class_Name:

 

maneesh3_0-1733139013391.png

 

Output:

 

maneesh3_1-1733139056421.png

 

Hi @maneesh3 ,

 

Share the request body screenshot. Remove the line number 11 from your script and then try.

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

Hi Runjay,

 

Removed line 11 in BR and still receiving error:

 

maneesh3_0-1733144214437.png