Zoho API insert product record subform
I'm trying to insert products into the Zoho CRM via the API (version 1.0). I have several hundereds of products in a custom XML file that need to be inserted in the CRM as products in my custom layout, but I am encountering several issues.
The custom layout contains several custom fields (I can insert these just fine) except for the subform.
- Is it possible to insert subforms? Searching yielded nothing helpful except this zoho help article which didn't have a conclusive answer regarding my specific query.
- How can I insert an image? The uploadPhoto endpoint only works with Leads and contacts.
This is the XML I'm currently sending (this works fine for default and custom fields):
- <Products>
- <row no="1">
- <FL val="Layout">128694000000128516</FL>
- <FL val="Product Name">Test product 1</FL>
- <FL val="Vendor Name"></FL>
- <FL val="EAN code">123456</FL>
- <FL val="Product Category">Ring</FL>
- <FL val="Inkoopprijs">1234</FL>
- <FL val="Unit Price">9876</FL>
- <FL val="Hoeveelheid in voorraad">1</FL>
- <FL val="Description">description here!</FL>
- </row>
- </Products>
For the subform, I tried adding the following inside the above:
- <FL val="SubFormName">
- <row no="1">
- <FL val="SubFormField1">x</FL>
- <FL val="SubFormField2">y</FL>
- </row>
- </FL>
Alternatives for "
<row no=1>" I tried "
<add>" and "
<product>", but none seem to work.
Any help would be greatly appreciated!