How to pass the comments which is added from emails to the ticket for integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 01:30 AM
Hi All,
There have been comments been added to the ticket through email
We are working to pass the latest comments to the Webex space through POST HTTP Method.
The content-type of the HTTP Method is application/JSON
But it is throwing an 400 status error, which says "There were syntax errors present in the content when this specific API call was triggered, resulting in an error being thrown"
Could you please help us to understand why such error is showing up? Is it due to the content which we are getting from email is not in JSON format? If yes, what is solution for it?
Please help on this on priority.
Regards,
Joyal Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 01:56 AM
400 is a invalid payload error when you are forming a Json request body there can be missing some thing or malformed request syntax , have you tried to print the json request body is it valid json ? if not then you have to make a proper json request body.
var payload ={};
payload.comments :"testing";
payload.description:"Hello test";
var inp = JSON.stringify(payload);
Thank you!!
Vishakha Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2024 02:17 AM
Actually, we are trying to push the comments added from portal to Webex through REST message, what we had observed is that when we add the comments from portal it is not fetching but through form and email it is fetching:
This is the rest message:
Is there any way that we can fetch the comments from portal as well?
Please help on this on priority
Regards,
Joyal Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 02:04 AM - edited 06-24-2024 02:05 AM
@Joyal Robert These issues occur, If there is an error in parsing the data from API side. So, once check the API on how it is parsing and using the data.
And while sending data, if content-type is JSON, check whether ur sending data in correct JSON format.
Please mark this response as correct or helpful if it assisted you with your question.