Hi Peter,
I read into your notes and understand that you want to be able to have only certain file uploads go over to certain Email Data Destinations, is that right?
Based on the way the form is currently set up, with only 1 required File Upload field, that's true that it's not possible to select which among the files, that a mobile user would upload, to send out to the Email Data Destination. Dave is correct there as well.
That checks out, though, because there's no way the form would know ahead of time, which files should be sent out by email, and which shouldn't, because the form wasn't set up to have a way to determine that yet. There's no distinction within this 1 field, 'Thermografie'.
Thinking of a way around this, to only receive the Email Data Destination with certain files, there are a few ways to design for this:
(1) You could have the mobile users select what types of files they're including, and fire Email Data Destinations based on that
(2) You could set up several Email Data Destinations, with filters, so they only fire under certain circumstances, like certain fields being filled out
I made a test to practice, but will take it down for now. Feel welcome to DM me if you'd like any further guidance on this. It would be great content for an upcoming TrueContext University module as well.
Here's an example build:
I saved the form, and made sure the Email Data Destination is linked, and then tested it out:
Another area to check out, in the Email Data Destination settings, in the Attachments tab, you can select to have the File Uploads be separate, so that they're not all jammed into one submission in case you wanted to have an easier time sorting through attachments, if you truly need to have 1 File Upload field within the form, and the potential of many attachments:
I hope this has helped based on what we have so far, and feel free to message me in case you have any questions!
Warmly,
Erika
______
------------------------------
Erika Lapenat
Technical Content Developer
TrueContext University
------------------------------
Original Message:
Sent: 12-13-2023 06:01
From: Peter Dienaar
Subject: File Upload attachments to Data Destination
Hello,
Is it possible to select which uploaded files in a form can be sent as attachment to a data destination (email).
Example :
As far as I can see it is all File Uploads or nothing on data destination side.
Is there an alternative way to select only the "Thermografie" file upload (see example) as attachment to this mail destination?
Regards,
Peter
------------------------------
Peter Dienaar
PF developer
Johnson Controls
------------------------------