ZCRM API insertRecord notes error

ZCRM API insertRecord notes error

Hi, I am trying to insert a lead into ZCRM and then insert a note related to this lead. I am following this tutorial https://zohocrmapi.wiki.zoho.com/insertRecords-Method.html and using Java example.
I am able to insert a lead record, but fail to insert note.
The error i am getting is:
  1. <response uri="/crm/private/xml/Notes/insertRecords">
  2.  <error>
  3.  <code>4401</code>
  4.  <message>Unable to populate data, please check if mandatory value is entered correctly.</message>
  5.  </error>
  6. </response>

My lead XMLDATA is
  1. <Leads>
  2. <row no=\"1\">
  3.  <FL val=\"Company\">Web Download</FL>
  4.  <FL val=\"Last Name\">Scott</FL>
  5.  <FL val=\"Email\">test@test.com</FL>
  6.  <FL val=\"Phone\">1234567890</FL>
  7.  <FL val=\"Contact Owner\">steve</FL>
  8.  <FL val=\"Description\">test</FL>
  9. </row>
  10. </Leads>
and my note XMLDATA is
  1. <Notes>
  2. <row no="1">
  3. <FL val="entityId">1</FL>
  4. <FL val="Note Title">Zoho CRM Sample Note</FL>
  5. <FL val="Note Content">This is sample content to test Zoho CRM API</FL>
  6. </row>
  7. </Notes>
My only doubt is that maybe the value of entityId is incorrect. I am guessing that because I only import one lead its id will 1. I understand it's a naive assumption, so I've tried to retrieve lead's id from ZCRM by exporting the only lead and then using LeadId value from xls. This didn't work. So how do i import notes and relate them to leads?

Thank you