cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
TBMRégulation
New Member

Delete *.jpg on folder Google Drive

Hello everyone, I created a flow that transfers me the attachments of the e-mails that I receive on Outlook in a folder on google drive.

 

My problem is that in this mail, there is an image in the signature that is also copied to Drive.

 

How can I filter for all * jpg? Change my Flow or create a new one?

 

Thank you for your helpCapture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Delete *.jpg on folder Google Drive

Hey @TBMRégulation 

 

You have to put that condition just below the trigger to check for the image files. If the file is image and the condition is yes then do not do any thing (as you dont want to create the image files in gdrive) and if no, create the file in google drive. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

4 REPLIES 4
Dual Super User
Dual Super User

Re: Delete *.jpg on folder Google Drive

Hi @TBMRégulation 

 

You can check the Attachment content type for image/png or image/jpg and get rid of the image files: tesw.PNG

Note that this will strip all the files that have the jpg or png content type. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

TBMRégulation
New Member

Re: Delete *.jpg on folder Google Drive

Thank you for your help.

 

but I don't know where I can introduce this condition in my flow

Actually I want to delete all * .jpg images from this folder, should I leave "image / jpg" where I have to put the full name of the image to delete?

In the condition, "If no" what should I write?

 

Sorry I'm a nooby Smiley Embarassed

Dual Super User
Dual Super User

Re: Delete *.jpg on folder Google Drive

Hey @TBMRégulation 

 

You have to put that condition just below the trigger to check for the image files. If the file is image and the condition is yes then do not do any thing (as you dont want to create the image files in gdrive) and if no, create the file in google drive. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

TBMRégulation
New Member

Re: Delete *.jpg on folder Google Drive

Ok thanks.

 

So, I have to write "image/jpg" like in your example or "*jpg" ?

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,859)