Getting {"result":{"code":400,"error":"Attribute: '' is missing in payload."}} in Outbound REST call
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2024 02:46 AM
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:
Business rule:
No clue still getting error:
Please help to overcome issue.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 10:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 11:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2024 02:06 AM
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2024 02:19 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2024 03:40 AM