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 Automate
Answered

Update datatable

(0) ShareShare
ReportReport
Posted on by 16

I have an excel Datatable, which I can update as such:

%ExcelTableData[2]['Records']%

Which updates the column records

 

I can read each row as such:

PAD.png

I can write the DataTable to excel by 

Pad2.png

 

If I want to read a datarow, process it and then update the data table, I am having problems

 

Updating S1_CurrentItem does not update the data table.

 

Is there any way I can dynamically update the data table?

  • VJR Profile Picture
    7,635 on at

    Hi @Cable998 

     

    Unfortunately doesn't look like there is an option to do that right now.

     

    One way is, as you loop through the data table, maintain row and column counters, and use these row/column variables in the "Write to Excel Worksheet". This will directly write the new value in the Excel sheet.

     

     

    VJR_0-1632225886473.png

     

    after the above message box

    VJR_1-1632225922318.png

     

    Column is fixed as 1 in this example and only the row is incremented.

    VJR_2-1632226041497.png

     

     






    -------------------------------------------
    Help fellow beings find relevant posts.
    Upvote to a supporting response.
    Mark as solution to an answer.

  • Verified answer
    Cable998 Profile Picture
    16 on at

    Hi,

     

    I have worked out how to do it, I presumed it was the syntax was like printf variables and the % signs were used to specify variables. 

    Looping through each row, allows me to update the datatable, and then bulk write it back to Excel, thusly:

     

    PAD3.png

  • VJR Profile Picture
    7,635 on at

    @Cable998 , glad you figured it out 🙂. When I tried the same it was giving me the same issues as yours (datatable was not updating the values to Excel).

  • subhasmalik Profile Picture
    6 on at

    You are the savior!

    Respect 😎

  • Sanchos_Bro Profile Picture
    5 on at

    May be a new feature since this post:

    Find or replace in data table

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 211 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 190

Last 30 days Overall leaderboard