Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Fetch latest record added in Excel and send it to teams channel

(0) ShareShare
ReportReport
Posted on by 7

I want fetch the latest record added in the Excel and that particular record should sent to teams channel is it possible.Please help me.

  • Verified answer
    v-peijunz-msft Profile Picture
    Microsoft Employee on at
    Re: Fetch latest record added in Excel and send it to teams channel

    Hi @maniyarsohel,

     

    There is no direct trigger to automatically send a message to Teams when a new record is created in Excel file.

    However, a workaround could be achieved through using two flows.

    1. The first flow is extracting records from the Excel file to a SharePoint list.

    I have a SharePoint list called "App test" with all the records listed here:

    vpeijunzmsft_0-1659411945862.png

    My excel file has a new record:

    vpeijunzmsft_1-1659411945865.png

    The first flow is shown here:

     

    length(outputs('Get_items')?['body/value'])

     

    Then using a Condition action to filter new records added in the Excel file.

    vpeijunzmsft_2-1659411945867.png

    vpeijunzmsft_3-1659411945870.png

    vpeijunzmsft_4-1659411945877.png

    After running the first flow, the new record is also added in the SharePoint list:

    vpeijunzmsft_5-1659411945878.png

    2. Once the new record is uploaded in the SharePoint list, using "When an item is created" trigger to automatically trigger the flow.

    Here is the second flow:

    vpeijunzmsft_6-1659411945882.png

    It is more recommended that to use the SharePoint list as the data source, then you could use  "When an item is created" trigger to automatically trigger the process: send a message to Teams when a new record is created.

     

    Best regards,

    Sylvia

  • maniyarsohel Profile Picture
    7 on at
    Re: Fetch latest record added in Excel and send it to teams channel

    hey @v-peijunz-msft thanks for the solution but for this I need to run the flow manually but I want it to be an automatic process eg: whenever a new row is added into the table that record should sent to teams.

    Each time whenever the new row is added the new record should sent to teams channel. Is it possible?

     

  • v-peijunz-msft Profile Picture
    Microsoft Employee on at
    Re: Fetch latest record added in Excel and send it to teams channel

    Hi @maniyarsohel,

     

    Based on your description, I have made a simple test for your reference.

    1. I have a excel file named App test which is stored in the SharePoint library.

    The excel file contains a table (called Table1) that stores all the data records.

    The latest record in Table1 is shown here:

    vpeijunzmsft_0-1658393186227.png

    2. Here is my flow:

    last(body('List_rows_present_in_a_table')?['value'])
    outputs('Compose')?['YourColumnName']

    vpeijunzmsft_1-1658393186229.png

    vpeijunzmsft_2-1658393186234.png

    3. Result Screenshots:

    vpeijunzmsft_3-1658393186236.png

     

    Best regards,

    Sylvia

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1