Import multiple email attachments from 1 email in Logic Apps - azure

I am currently receiving an email with 2 email attachments. I only care about pulling in one of those attachments "Delivery Sales" and I don't care if I pull in or disregard the other.
My workflow should be: Run when new email is detected > Grab attachments > Push attachment to Blob > Archive Email.
I can get all of these to work (and it even archives the email) but it will error out on the archive step because it seems to fire it off twice (once for each attachment it seems).
So how can I pull in the email, throw the attachment to blob, and then archive the email into another outlook folder?
Below is my current setup. I have tried moving the email move to outside the loop (still fails), I have also added a condition to look at the attachment names, true/false, still fails.
The email arrives in a shared email box, the move now seems to take a while and times out with a status of "BadGateway"

My issue appeared to be in the move toe mail folder I had selected an "Archive" folder that was on the same level as my inbox. My Outlook for whatever reason didn't like that. So I clicked on Inbox and navigated to "Archive". I then re-ran and it worked just fine.

Related

Adding updated attachments after an start and wait for approval in power automate

I want to add updated attachment in my workflow but suddenly I don't know what should I put in "send an email V2".
I tried to put 'link to item' but suddenly it only shows the list in SharePoint. I want to add the attachment only, once you have receive the email,you can click the attachment and automatically open or shows the content of attachment.
You could create a flow as steps in the following article. I have tested it and successfully.
https://www.enjoysharepoint.com/power-automate-send-an-email-with-an-attachment-from-sharepoint/

He does not allow me to send images with a size greater than 800kb

I created a flow in Power Automate for it sent scheduled mails from a Sharepoint list, the Sharepoint list contains columns such as Subject, Recipient, Hyperlink, Date and Time sent, and additional I make use of the attachments column for him sent image.
The only thing I'm interested in sending in scheduled emails is an image which I'm uploading and sending from the attachment column.
Here the problem that I am presented is that when the image exceeds 800 kb it is not sent in the body of the mail, that is to say that the mail arrives without the image only with the information loaded in the subject.
The flow I have built as follows:
When you add an item or modify it later you will have a delay that is until the Date and Time that has been defined in the creation of the new Item of the Sharepoint list, then you will get the changes or properties to identify if the mail has already been sent and not be sent each time the item is created.
Then I get the attachments, which as I mentioned is the image that is going to be sent in the scheduled emails and is the one with which I am having problems, after obtaining the attachments I initialize a variable of type String that I will use later.
I apply this for each, then get the contents of the attachments and attachments to the variable that had previously been initialized the value of the hyperlink and image in the dataUri.
The dataUri expression is defined as follows:
dataUri(outputs('Get_content_of_attachments')?['body'])
Finally I validate in a condition that the mail has not been sent and finally I prepare the content of the mail by sending the parameters that I had previously entered in the Sharepoint list, if they are fixed in the body of the mail I make use of the str variable that I had previously initialized for him sent the image.
As you see this is the flow I have built to send images in scheduled emails through a Sharepoint list, here the error I am already presenting as I comment is that when I try to send an image that exceeds 800kb the image is not sent in the mail. Are there any modifications that may change in my flow? Or another way to do it but that images above 800kb arrive in the mail.
If you use the Azure API to send e-mails, you will have limit of 4Mb to Attach files; to use this, you need to consume endpoint https://outlook.office.com/api/v2.0/users/{USER-EMAIL}/sendmail in your flow and attach the files needed to be as base64 string. In this article, constains a complete reference with all step-by-step that you need to do: Overcome 4MB mail limit sent from Microsoft Flow

Get attachments from a GMAIL folder and upload to G-drive folder

I have a list of gmail folders/labels (of client names) and the corresponding folders in g-drive. These values are the same. e.g. If gmail folder/label is Joe Citizen then the corresponding folder in g-drive is Joe Citizen.
What I'm wanting to automate is that when I move an email with Attachments to a gmail folder/label it uploads these attachments to the corresponding folder in g-drive.
I have found a template between gmail and gdrive however it takes attachments and pushes it into 1 folder in gdrive. I'm unsure how to create a rule to consider the name of the gmail folder/label and find the corresponding folder in gdrive.
That's exactly what the add-on I wrote does! Check out the code: https://github.com/ellaqezi/archiveByLabel
You'll set label to e.g. Joe Citizen and query to label:joe-citizen to archive all attachments of messages labeled Joe Citizen to the same directory on Drive

Why attachments from Gmail drafts copied to Trash?

I use this Gmail API request for fetching Gmail messages in user mailbox. I need to list messages from Trash as well. But in some cases message list got by list messages request is different from actual content of Trash folder content.
To reproduce the problem next steps can be performed:
Ensure that my Trash folder is empty - no messages visible in Gmail web client and API list messages request returns 0 messages in Trash.
Start creating message by pushing "COMPOSE" button in Gmail web client.
Attach file to this draft message.
Get messages list in Trash using Gmail API list messages request.
The request returns 1 new message in user Trash folder (with the file attached to draft mentioned above) however it`s not visible in Gmail web client.
Is it normal or kind of bug? Is this a problem of Gmail web client or Gmail API?
Based from this thread, when you upload a file to Gmail as an attachment, Gmail creates a temporary file to hold the data and is then sent to Trash.
So, to get a more precise search, try adding q parameter using the advanced search syntax.
See Searching for Messages to learn more.

Need IFTTT recipe to send specific gmail attachments to specific dropbox folders

For example: Email arrives with subject "Report for domaina.com". It has an attachment. I want to setup the recipe to save domainareport.pdf to Dropbox under /reports/Domaina. I'd then create similar recipes for domainb, domainc, etc. Seems like this is possible, but I'm a total IFTTT nub. Thanks!
Create a trigger on gmail using email from search and typing in this
Create an action using Dropbox and it will have automatically filled
out everything EXCEPT the folder path edit the folder path so it looks like this
Hope this helps :)

Resources