web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / On the basis of extens...
Power Automate
Unanswered

On the basis of extension of file save in a different folder

(0) ShareShare
ReportReport
Posted on by 19

Email came with multiple attachments(.pdf,.csv,.txt,.xlsm,.xlsx). But I am interested in .csv and .xlsm attachments only. Ignore all the other attachments. Only problem is that these two extension will save in two different folders(Azure File Storage). I am not able to design that logic in my power automate.

Till now, my logic is that, First I check all the attachments and get all the extension and then put condition.

 

shantanu97_0-1642848520738.png

Attachment Extension Formula:

substring(outputs('Compose'),indexOf(outputs('Compose'),'.'),sub(length(outputs('Compose')),indexOf(outputs('Compose'),'.')))
 shantanu97_2-1642848677536.png

Couple of questions:
1.How to get File Name & File content that contains only .csv file. Similar thing with .xlsm file.
2.What should I put in no condition. There might be scenario when there is no .csv & .xlsm file present in the email.


 

 

 

Categories:
I have the same question (0)
  • Gopala_Krishna Profile Picture
    1,495 on at

    @shantanu97 

     

    You can pass attachment name and attachment content in the Create File action inside the yes part of the condition

     

    In the No part of the condition you can either leave it blank if you don't want to perform any action, else you can specify action based on what you want to achieve.

     

    If the information shared helps you please consider giving a thumbs up and mark solution as resolved

    Please follow my website PowerCards for more information related to Power Platform

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard