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 / 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
    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
    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
    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
    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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard