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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using data from multip...
Power Automate
Unanswered

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!

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

    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.

     

  • ceesrijkaart Profile Picture
    6 on at

    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. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard