You need to sign in to do that
Don't have an account?
API User 69
Post comment to salesforce case using Rest Api
I am trying to integrate Salesforce with some external application. Using Postman I am trying out the API to post comment to Salesforce case. Can someone guide me which API to use?
/services/data/v34.0/sobjects/Case/<<your case id goes here>>/CaseComments
Thanks for the quick reply.
I already tried this API :
{
"body":{
"messageSegments":[
{
"type":"Text",
"text":"test comments"
}
]
}
}
Error: [{"errorCode":"METHOD_NOT_ALLOWED","message":"HTTP Method 'POST' not allowed. Allowed are HEAD,GET"}]
PATCH: https://yourcompanyurl/services/data/v48.0/sobjects/CaseComment/case_comment_ID_goes_here
Body:
{
"CommentBody":"Edit Comment Test"
}
PATCH: https://yourcompanyurl/services/data/v48.0/sobjects/Case/case_ID_goes_here
Body:
{
"Comments":"Test entering new case comment to case"
}