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 / Add a Dynamic Key Colu...
Power Automate
Unanswered

Add a Dynamic Key Column to an Excel Table and then Update it

(0) ShareShare
ReportReport
Posted on by 7

Hello, I want to add a column to a table with a dynamic name and then update a row including the value in the newly added column. Obviously the new column (IssueDateClean) is not listed as an option in the Update a row action because it was created in the previous step and will change for every flow run, is there any workaround for this? Thank you.

 

NGatensby_1-1697135222253.png

 

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

    Hi @NGatensby ,

     

    Do you want to add a column in Excel and update all the data in this column to a certain data?

     

    You need two flows to do this, please try this:

    The first flow for adding a new column:

    vmengmlimsft_0-1697163352447.png

    The second flow for updating rows:

    vmengmlimsft_1-1697163405937.png

     

     

     

    Hope this helps you!

    -----------------------------------------------------------------------------------------------------------------------------------

    If my answer solves your problem, please accept it as a solution to help more people stuck on the same problem find it.

     

    Best regards,

    Rimmon Li

     

     

  • NGatensby Profile Picture
    7 on at

    Hello, thank you that would work for a static column name but the new column name is actually dynamic, it is driven by a variable. Any ideas?

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

    Hi @NGatensby ,

     

    If you get different column names in the Apply_to_each, you just need to put Add a Key Column under this loop and reference this variable when entering the column name.

     

     

    Hope this helps you!

    -----------------------------------------------------------------------------------------------------------------------------------

    If my answer solves your problem, please accept it as a solution to help more people stuck on the same problem find it.

     

    Best regards,

    Rimmon Li

  • NGatensby Profile Picture
    7 on at

    Thank you for the suggestion but I don't quite understand what you mean

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

    Hi @NGatensby ,

     

    Could you show me the flow about how do you get the dynamic column name?

     

     

  • NGatensby Profile Picture
    7 on at

    The Flow is triggered when a file is added to a specific SharePoint folder, the new column name is driven by a variable called IssueDateClean which is a formatted date based on the Created attribute from the file which has been uploaded. 

    NGatensby_0-1697189640328.png

    NGatensby_4-1697189788859.png

     

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

    Hi @NGatensby ,

     

    If you want to create a new column in the table and update the column contents, you need to create two flows to complete each of these operations. If you want to update a column, the column must first exist, otherwise you will not get the column to be updated in the next action Update a row.

     

    Hope I made it clear enough.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard