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 / Adding an extra column...
Power Automate
Answered

Adding an extra column to Outlook Excel Attachment in Power Automate

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to add an extra column (Date column: the current date when the flow runs), to a an excel attachemnt before I save it in a folder. 

This is what I have been able to do:

  1. When email arrives
  2. Apply to each
    1. Attachment
    2. Get Attachment
  3. Create file: to save into a folder

Between Get attachment and saving to a folder, I want to add a date column to the attachment.

or is there a way I can add the current date field without doing it between step 2 and 3?

Categories:
  • Verified answer
    ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @Anonymous 

    I believe that you can use Office Scripts to add and populate the column.  You can execute the script from a Power Automate Excel Online Run Script action.

    Here is a link for more info on Office Scripts for Excel.

    My assumption is that the worksheets are formatted in the same way every time that you receive them.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, the worksheets are going to be in the same format and the office script works perfectly for adding the extra column. So when the worksheet is saved in the folder1, in Power Automate, I run the 'add column script', to add the column, move the updated file to keep the folder1 empty for the subsequent attachments.

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
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard