How can I obtain the information of the invoice associated to a debit note, by means of a personalized function in zoho books

How can I obtain the information of the invoice associated to a debit note, by means of a personalized function in zoho books

Dear

I need to obtain the information of the invoice associated to a debit note from a parsonalized function, since when creating a new debit note I must send the information to an API, by means of XML, in which the data of the debit note should go and the reference to the invoice to which it will make changes, but when reviewing the debit in argument "Invoice", of the personalized function, it does not make any reference to the associated invoice, not even the folio or any data with which it can do the search through deluge and to be able to enter the data that I need. Is it possible to obtain the information I need?
any help I would appreciate