

Here’s the code: //create collection of filenames All your files will be attached and any empty placeholders will be ignored. Select the subform from the drop-down and make sure all your cells map to subform fields. Make a list of all the placeholders on the Attachments: line of the sendmail. Put all the uploaded files into a collection and then assign each element in that collection to a placeholder variable. (I actually only made 20 because that’s more than enough for my purposes. This means you can build a work-around using the brute-force method of making a zillion placeholder variable names: filename0, filename1, filename2, etc. It only seems to take a hard-coded list of variables, each representing a specific file.īut then I made a key discovery! If that hard-coded list contains any empty variables, sendmailwill just ignore them. For example, an employee registering for a vacation can easily list family members and their. You can use the subform to collect multiple entries of the same category effortlessly. That specific set of questions can be duplicated or repeated dynamically within repeating sections. Access the MainForm Report in live mode and click on Settings. A subform is a form within a form containing a set of questions. I also could not find a way to store multiple file names in one variable that the Attachments: slot would accept. Import data into a Form with SubForm Populate the required data into the XLS file created above. Similarly, there’s no way to put a for each loop inside the sendmail. For example, if you want to concatenate two strings, you have to do it outside of the sendmail expression and store the result in a single variable that you then put inside the sendmail. The tricky part is that sendmail syntax does not allow for any expressions, only variables. I was not satisfied with this work-around, so I decided to see if I could come up with something better.
ZOHO CREATOR IMPORT SUBFORM DATA DOWNLOAD
This works fine if you know how many files you have but how can you add an arbitrary number of attachments? I emailed support and they told me it was impossible, recommending that I instead include a list of download links in the body of the email. Please refer to your API Name page in your Zoho CRM organization. The syntax for including multiple attachments via sendmail is to separate them by commas. You would need to get the subform records using related list data. Things get tricky if you want to include all these files as attachments in an email. This allows your users to upload as many files per record as they’d like. You could clutter up your form with multiple upload fields, but a more elegant way to get around this limitation is to put your file upload field into a subform. Zoho Creator has a file upload field but it only accepts one file per field. Zoho Analytics allows you to import data from files and feeds stored in a Web URL.
