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 / Creating Date Column u...
Power Automate
Answered

Creating Date Column using Power Automate

(1) ShareShare
ReportReport
Posted on by 20

I currently have a flow set up that creates a file in SharePoint once I receive an email containing an attached .csv file.  The flow works perfectly fine; however, I need to edit it so that it will also create a column containing the current date. How could I accomplish this?

 

Thank you in advance for the help.

Categories:
I have the same question (0)
  • JS-22071843-0 Profile Picture
    2 on at
    The images explaining the filling out the CSV are broken. Could we get an update that explains that step @Nived_Nambiar?
  • tmsn Profile Picture
    2 on at

    Hi @Nived_Nambiar, Thank you for providing these insights. I'm using this same flow and it's working for me. However, there are some differences in my output.

    In my output, I'm receiving double quotes in my values. Would you be able to provide any insight on why this is happening or how I can remove the double quotes? I tried using replace with the split function but haven't been able to come up with anything that works.

    tmsn_0-1701464191459.png

  • RTbmart Profile Picture
    20 on at

    @Nived_Nambiar 

     

    Looks like this is working exactly the way I want it to! Thank you!

  • Nived_Nambiar Profile Picture
    18,136 Super User 2025 Season 2 on at

    Hi @RTbmart 

     

    skip function used at at the top is used to retrive the input data for csv table creation, here it takes the file content of csv file, split by new line and then skip the first element created from splitting by new line since the first element is a header, which we don't want now 

     

    function used is 

    Nived_Nambiar_0-1683739164083.png

     

    skip(split(string(outputs('Get_file_content')?['body']),decodeUriComponent('%0A')),1)
     
    Now coming to columns, since csv have values seperated by commas. so we are taking each value and then taking appropriate index value. like below
     
    Nived_Nambiar_1-1683739257444.png

     

    Nived_Nambiar_2-1683739283482.png

     

     

    Just rewriting same columns from csv again, that's all i am doing here 🙂

     

    Hope it helps !

     

     

  • RTbmart Profile Picture
    20 on at

    Hi Nived,

     

    Thank you for your response. Judging by your output file, this flow appears to be accomplishing what I need it to. However, I still need clarification on the "Create CSV table" step.  What did you put in the functions for "skip(...)" and "split(...)"? In other words, what do the periods indicate inside the parenthesis?

     

    I am still new to Power Automate, so I appreciate your assistance very much.

     

    Thanks again.

  • RTbmart Profile Picture
    20 on at

      

  • Verified answer
    Nived_Nambiar Profile Picture
    18,136 Super User 2025 Season 2 on at

    Hi @RTbmart 

     

    well you can accomplish by re creating the same csv table like below

     

    Input file used 

    Nived_Nambiar_3-1683686658823.png

     

     

    output file got:

    Nived_Nambiar_4-1683686693951.png

     

     

    date column is added having current date details.

     

    Flow used

     

    Nived_Nambiar_2-1683686554298.png

     

    in date, expression used is formatDateTime(utcnow(),'yyyy-MM-dd')

     

    Hope it helps !

    Mark it as solution if it resolves your query !

     

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
David_MA Profile Picture

David_MA 258 Super User 2025 Season 2

#2
trice602 Profile Picture

trice602 205 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 204 Most Valuable Professional

Last 30 days Overall leaderboard