Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Using data from multiple Excel cells in Power Automate Flow

(0) ShareShare
ReportReport
Posted on by 6

Hi All, 

 

I'm working on a system for registrating non-conformities, submitted via Forms, into a sharepoint list. 

When an item in the list is created, the contents of the list are also saved into an Excel file, which forms the report of the issue. 

This all works perfectly. 

 

Now, I'd like to have both the form and the sharepoint list updated if the other source of information is modified. 

Updating the Excel list triggered by a modification in the sharepoint list is easy, I'm struggling with the other way around. 

Since a modified file in a sharepoint folder is not a trigger, I'm using a sequenced flow. My plan is to have a script in the Excel file running for each file in the specific folder. 

 

Could anybody help me out with a script code, that reads data from specific cells a worksheet, and making them available as variables in the Power Automate flow?

 

Thanks a lot!

  • ceesrijkaart Profile Picture
    6 on at
    Re: Using data from multiple Excel cells in Power Automate Flow

    Hi @v-wenjuan-msft 

     

    Thanks for the great help, that is indeed the perfect trigger for this situation, especially with the modified conditions. 

    FYI: I've succesfully written the script. The code is:

     

    function main(workbook: ExcelScript.Workbook){ 

     

      let Form_sheet = workbook.getWorksheet("Sheet1");
      let idValue = Form_sheet.getRange("E2").getValue();
      let Authorname = Form_sheet.getRange("B2").getValue();
      return {idValue, Authorname}

     

     
    In Power Automate, I've add the Sharepoint Modify Item action. The returned parameters idValue and Authorname from the Excel script can be used in this action. 
  • Verified answer
    v-wenjuan-msft Profile Picture
    Microsoft Employee on at
    Re: Using data from multiple Excel cells in Power Automate Flow

    Hi @ceesrijkaart ,

     

    I don't play with script... but SharePoint connector do have a trigger named "When a file is created or modified (properties only)" which may match your request.

     

    You can set trigger condition to this code to limit the flow just triggered when modifications happened rather than creation.

     

    @not(equals(triggerBody()?['Created'], triggerBody()?['Modified']))

     

     

    vwenjuanmsft_0-1686648989996.png

     

    Community Support Team _ Wenjuan Zou

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

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