Downloading Image from Subform using Deluge (invokeUrl) - Data Mismatch / Connection Issues

Downloading Image from Subform using Deluge (invokeUrl) - Data Mismatch / Connection Issues

Hi Zoho Community,

I'm struggling to download an image from a subform in Zoho Creator using Deluge and then attach it to a Zoho CRM Deal record. I've been working on this for a while, and I'm encountering issues that I believe are related to either data type mismatches or my connection setup. I'd really appreciate any help or guidance.

Context:

  • I have a main form called "SQ_Form" .
  • I have a subform called "Kiosk_Placement_s" .
  • The subform "Kiosk_Placement_s" contains an Image field called "Pathway_Image_1" .
  • I have a Zoho CRM connection that is set up at the application level. (I've verified this).
  • I'm using the invokeUrl to download a file. *I am using a function, not a workflow.

Goal:

I want to write a Deluge function that, given the main form record ID, the subform row ID, the image field name, and other necessary parameters, downloads the image from the subform and eventually
attaches it to a related Deal record in Zoho CRM. (I'm focusing on the image download part for now).

I have tried so many different things I don't even know which one was close to working. 

If anyone has done this PLEASE, I'm begging you, help me out. I have been stuck on this for a month and gotten nowhere. I really need to get this figured out.

One user on Reddit said it wasn't possible while others say it is without giving me any advice.

Thank you in advance.