Hi,
I have made an app which allows for the upload of up to 5 .msg files. These are submitted to a sharepoint location and converted to .pdf using a onedrive. The intention is to then send the files back to the person who submitted them (currently planned for attaching all .pdfs submitted to a single email, but will work on that once i've fixed current issue).
I am using the "modified by" column in the sharepoint site to get the email address of the uploader. When I do this, I enter the "Apply-to-each" loop , which when combined with the send an email v2 function causes duplicate emails to be submitted (3 x the upload amount for 5 uploaded .msg files).
To get round this I tried to initialise a variable with a string / array, and then setting the string / integer in the loop. When I do this, for a string, the email address is tripled (which explains the 3 x issue mentioned earlier) and when using the integer, the email address added for each loop - so the first attachment sent back would have 1 email populated, the second 2 email addresses populated, etc - giving the 15 emails mentioned earlier.
I'm trying to find a way to complete this and getting nowhere at the moment. It would be great to use a User().Email TextInput field on the app and apply this to the Send and Email v2 function in the flow, but havent worked this out quite yet.
Any help appreciated!