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 / When a file is updated...
Power Automate
Answered

When a file is updated get the file and attach it based on a column data

(0) ShareShare
ReportReport
Posted on by 80

Hi Everyone,

I have a spreadsheet (fileowner.xlsx) in a SharePoint folder which has list of file owners' email addresses in one column and next column is the list of file names with their extension.

In the same folder I have all the files stored (spreadsheets).

 

I want if a file (spreadsheet ) gets updated, trigger a flow:

A. Look it up in the list of file names then list of file owners email address in fileownser.xlsx --->>> if file name = file names (formatted header)

B. Attach the updated file to an email from list of file owners' email addresses (formatted header) and send it to the file owner.

SBwrk_0-1699412408784.png

 

 

Can anyone help me with tips please?

 

Thank you

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @SB-wrk ,

    I did a test for your reference.

    In my scenario:

    vyetonggumsft_0-1699415126709.png

    vyetonggumsft_1-1699415201372.png

    vyetonggumsft_2-1699415308759.png

    My Excel table:

    vyetonggumsft_3-1699415415869.png

    Best Regards,

    Sunshine Gu

  • SB-wrk Profile Picture
    80 on at

    Hi Sunshine Gu,

    Thank you very much for your instruction. It is working fine, however, when I test the flow I see this error.

     

    SBwrk_0-1699417033451.png

    However, the flow works fine and I received the email after updating a file. Do you know why I'm getting failures while its working fine?

    SBwrk_1-1699417113493.png

     

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @SB-wrk ,

    Post a screenshot of the configuration of your 'Send an email (V2)' control.

     

    Best Regards,

    Sunshine Gu

  • SB-wrk Profile Picture
    80 on at

    Hi Sunshine Gu,

    SBwrk_0-1699417627392.png

    I keep changing the "Body" to "File content" but when I press save and run the test, it switches back to "Body". I think this is the issue.

     

    Regards,

    SB

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @SB-wrk ,

    This is not the problem. It is normal to switch to 'body'.

    Please post a screenshot of your entire flow.

    I can't see any problem from this screenshot for the time being.

     

    Best Regards,

    Sunshine Gu

  • SB-wrk Profile Picture
    80 on at

    Sure, and thank you

    SBwrk_0-1699418336995.png

    SBwrk_4-1699418698529.png

     

    SBwrk_2-1699418501945.png

    SBwrk_3-1699418540413.png

     

     

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @SB-wrk ,

    There is no problem with your flow configuration.

    I have never encountered this situation before.

    Could you show me the error information of your 'Send an email (V2)' control?

    Like this:

    vyetonggumsft_2-1699420629696.png

    Best Regards,

    Sunshine Gu

  • SB-wrk Profile Picture
    80 on at

    Hi Sunshine Gu,

    Actually each time I make a change to a spreadsheet, I receive two emails.

    SBwrk_1-1699421423733.png

     

    SBwrk_0-1699421193701.png

     

    Regards

    SB

     

  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @SB-wrk ,

    How many times does your ‘condition’ control equal ‘true’?

    Make sure there are no files with the same name in the 'file names' column of your excel sheet.

    vyetonggumsft_0-1699421959024.png

    vyetonggumsft_1-1699421978555.png

    vyetonggumsft_2-1699422004441.png

    Best Regards,

    Sunshine Gu

     

     

     

  • SB-wrk Profile Picture
    80 on at

    Hi Sunshine Gu,

    You are 100% correct, I had the same name in one file name column.

    That was the issue. 👏

    Thanks heaps for your great help. 🙏

     

     

     

     

     

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 589

#2
Valantis Profile Picture

Valantis 459

#3
11manish Profile Picture

11manish 382

Last 30 days Overall leaderboard