How can I fetch data from Notes/Comments related to a Lead? I want to add it to my custom query report.
1 Like
Hi,
Please find the query below:
select * from `tabComment`
Where reference_doctype = 'Lead'
Thanks,
Divyesh Mangroliya
2 Likes
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
2 Likes
Thank you so much!!! @mangroliya