+ Start a Discussion
Mohan Krishnan 1Mohan Krishnan 1 

Is there any rest API to obtain the NOTES asssociated with a LEAD

Best Answer chosen by Mohan Krishnan 1
V V Satyanarayana MaddipatiV V Satyanarayana Maddipati
Hi Mohan Krishnan,

Query the notes under the particular lead by passing the recordid through Rest Api as mentioned below :
 
/services/data/v37.0/query?q=select+parentId+,+Body+FROM+Note+where+parentId+=+'00Q2800000NjD30EAF'

Hope this will help you.

Mark best Answer if its works for you. 

Thanks 
Satya.

All Answers

Ankit SehgalAnkit Sehgal
/services/data/v37.0/sobjects/Note/{ID}
Mohan Krishnan 1Mohan Krishnan 1
{ID} here represents the note id right. But my use case is to get all the notes associated with a single lead
V V Satyanarayana MaddipatiV V Satyanarayana Maddipati
Hi Mohan Krishnan,

Query the notes under the particular lead by passing the recordid through Rest Api as mentioned below :
 
/services/data/v37.0/query?q=select+parentId+,+Body+FROM+Note+where+parentId+=+'00Q2800000NjD30EAF'

Hope this will help you.

Mark best Answer if its works for you. 

Thanks 
Satya.
This was selected as the best answer