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 / getting data from exce...
Power Automate
Answered

getting data from excel row and attaching another file to same mail

(0) ShareShare
ReportReport
Posted on by 233

Hi EveryOne  🙂

 

1. I have an excel file with more than 500 rows and each row represents a customer with data.

and

2. I have complete excel file for each row of above file  in another one drive folder.  Files are saved with customer number. 

 

I can create a flow which will take data from each row(number 1) and populate it on word file and attache it to the mail but:

 

Is it possible to get same customer excel file(nummber 2) which is on the one driver folder with many other excel files and attach it to the same email?

 

We save the excel file on one drive with customer number and customer number is also in excel file(number 1) in each row. 

 

Thanks for help.  

Let me know if i have not explained very well. 

 

BR

Naji

 

 

 

Categories:
I have the same question (0)
  • schwibach Profile Picture
    2 Moderator on at

    Yes, you can get the file content from a SharePoint folder using the file name (and you can make that filename dynamic)

    You'll need this action

    schwibach_0-1667301455667.png

    And then you can add that content as the attachment's content and set a name for it.

  • Khan321 Profile Picture
    233 on at

    Thanks you @schwibach .

     

    My excel files are located at one drive.  Do we have OneDrive action?

     

    Du you have any link :)?

    BR

    Naji

  • schwibach Profile Picture
    2 Moderator on at

    Use the OneDrive for business connector.

    There is an action Get File Content using Path

    This will explain it.

    (214) Flow Actions: OneDrive for Business - Get File Content Using Path - YouTube

     

  • Khan321 Profile Picture
    233 on at

    @schwibach  thanks  🙂

     

    I have made flow where i attached the poulated world file with the name of  Policy Number(A special number). 

    Now i want to attach another file which is saved with the name of same Police Number but located in another folder. There are many other files with different police numbers, how to make the flow to attach the right file which has same Police Number as in email.   

     

    How can i make the "Get file content dynamic"

     

    I have tried alot but no luck 🙂

     

    Please take a look of the pictures:

    Once again thanks for your help. 

     

    Khan321_0-1667483965961.png

     

  • Verified answer
    schwibach Profile Picture
    2 Moderator on at

    Put the dynamic content "path" in a compose action.

     

    This will give you a string that contains your special number.

     

    Then you take that text and exchange your number for a dynamic reference to the number.

     

    Then you put the outputs of that action in the "Get file content using path" action.

     

     

    ok?

  • Khan321 Profile Picture
    233 on at

    @schwibach  Thanks for you help 🙂

    It went a bit above my head.  sorry 🙂

    In compose i Chose "Path"

     

    How can i do the number 2 you wrote?

    Khan321_1-1667544984400.png

     

     

    Khan321_0-1667544941203.png

     

  • schwibach Profile Picture
    2 Moderator on at

    add a second compose action where you reference your policy number.

     

    Then have the flow run once, so the path appears in one compose action and the policy number in the other.

     

    Then you take the result of the first compose action (that contains the policy number somewhere in the middle) and copy it into the compose action... the you have the path to one item hard coded.

    In that compose action you replace the hard coded policy number with the reference you have in the other compose action...

     

    Then you have a dynamic reference to the path that you want.

     

    Make sense?

  • Khan321 Profile Picture
    233 on at

    @schwibach  Thank you for you help and patience 🙂

     

    Is this correct ?

    I ran flow and took output of the first compose and put it in the compose 2 and then i chose the Policenr dynamically where Policenr was hard coded.

     

    Khan321_0-1667719777863.png

     

    and this is how the files look, which it should take dinamicaly.

     

    Khan321_1-1667720136122.png

    and then i used "get file content" chose compose 2 and attach the "get file content" to email but not working 🙂

     

    BR

    Naji

  • schwibach Profile Picture
    2 Moderator on at

    This looks good.

     

    Can you show the outputs of the two compose actions, the action you inserted afterwards and the error it gives you?

  • Khan321 Profile Picture
    233 on at

    @schwibach  Yes Offcourse 🙂

     

    Khan321_0-1667721837610.png

     

    error: It says the file id is not valid.

     

    Khan321_1-1667721965425.png

     

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
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard