- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 01:00 AM
Content: {
"short_description" : "",
"description": "",
"contact_type": "",
}
Error Message: Method failed: (/api/now/table/incident) with code: 400
Response: {"error":{"message":"Exception while reading request","detail":"The payload is not valid JSON."},"status":"failure"}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 01:05 AM
Could you please just try to pass the one parameter liek this
{"short_description":"${short_desc}"}
it seems something wrong in syntax.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 01:06 AM - edited 04-14-2025 01:07 AM
Below is the valid JSON payload to create incident.
{
"short_description": "xxx",
"description": "xxx",
"contact_type": "xx"
}Make sure to remove the comma ',' after the last key:value pair. PFB
Hope this helps.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 01:05 AM
Could you please just try to pass the one parameter liek this
{"short_description":"${short_desc}"}
it seems something wrong in syntax.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 01:06 AM - edited 04-14-2025 01:07 AM
Below is the valid JSON payload to create incident.
{
"short_description": "xxx",
"description": "xxx",
"contact_type": "xx"
}Make sure to remove the comma ',' after the last key:value pair. PFB
Hope this helps.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 01:27 AM
Thanks for the help. the comma after the last key:value pair was the error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 01:43 AM
No problem
