Associate multiple deals with one invoice

Associate multiple deals with one invoice

Hi,

My organization is using the Enterprise edition of Zoho CRM. I  would like to convert multiple deals into one invoice. I am currently trying to create a custom action, to create this but we are not able to link multiple deals in one invoice. The code that I am using is:
mp = Map();
zoho.crm.updateRelatedRecord("Invoices", invoiceId, "Deals", dealId,mp);

the error is:
"{"code":"INVALID_DATA","details":{},"message":"the relation name given seems to be invalid","status":"error"}"