How can I fetch data from Notes/Comments related to a Lead?

How can I fetch data from Notes/Comments related to a Lead? I want to add it to my custom query report.

Hi,

Please find the query below:

select * from `tabComment`
Where reference_doctype = 'Lead'

Thanks,

Divyesh Mangroliya

1 Like

Hello, I appreciate your assistance with this, but it seems that only the task I added to the Lead is showing. The Notes I added are not showing.

Hi,

For the Notes:

select * from `tabCRM Note`
where parenttype = 'Lead'

Thanks,

Divyesh Mangroliya

1 Like

Thank you so much!!! @mangroliya