• Priyashantha HP
  • NEWBIE
  • 15 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

I have this request body:

POST /services/data/v37.0/sobjects/Note HTTP/1.1 HOST: ap2.salesforce.com authorization: Bearer [ACCESS_TOKEN] content-type: application/json cookie: BrowserId=wBGf4rC3QK6IdvvndirVSQ content-length: 92
{"Title": "Test case note title", "Body":"Test case note body","ParentId":"5002800000T3Iu0"}

ParentId is a valid Case ID. But I get this as the response:

{
    "message": "Parent ID: id value of incorrect type: 5002800000T3Iu0AAF"
   "errorCode": "FIELD_INTEGRITY_EXCEPTION"
   "fields": [1]
      0:  "ParentId"
}

Not sure what's wrong with the request params. I could successfully add Notes into Contact/Account.

I have this request body:

POST /services/data/v37.0/sobjects/Note HTTP/1.1 HOST: ap2.salesforce.com authorization: Bearer [ACCESS_TOKEN] content-type: application/json cookie: BrowserId=wBGf4rC3QK6IdvvndirVSQ content-length: 92
{"Title": "Test case note title", "Body":"Test case note body","ParentId":"5002800000T3Iu0"}

ParentId is a valid Case ID. But I get this as the response:

{
    "message": "Parent ID: id value of incorrect type: 5002800000T3Iu0AAF"
   "errorCode": "FIELD_INTEGRITY_EXCEPTION"
   "fields": [1]
      0:  "ParentId"
}

Not sure what's wrong with the request params. I could successfully add Notes into Contact/Account.