Hi!
I'm trying to set up a flow to trigger on receipt of a new email message that has attachments.
I then want to total up the size of all the attachments to a GrandTotal variable.
Last step is to have it send a mobile notification if the GrandTotal exceeds 20 MB.
I have a When a new email arrives function with include attachments and only attachments checked.
Then, an initialize variable function for GrandTotal as int and value of 0.
Then, a for each function based on output from previous step of Attachments.
Then inside that, an increment variable function with parameter of Name = GrandTotal and the Value of
add('TotalSize',int(item()?['size']))
Then a condition function with parameter of variables('GrandTotal') with the True result kicking off the Send me a mobile notification function.
The last time it ran, the flow told me the increment variable function failed because it was expecting the first parameter to be an integer, float, or decimal but the provided value is a String.
Suggestions welcome.
-R