cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dgc
Level: Power Up

MS Flow from OneDrive to SQL Server, add file created date

Good Day,

 

I have created a MS FLow that watches an OneDrive for Business folder and adds the JSON files to a SQL Server database.  I started by using the template available from MS which uses Date=utcNow().

 

Under Dynamic Content  there are options for File Content, File Content Type, File Entity Tag, File Identifier, File Name and File Path however nothing seems to show the datetime the file itself was created.

 

Is there a workaround I can use?

2 REPLIES 2
Community Support Team
Community Support Team

Re: MS Flow from OneDrive to SQL Server, add file created date

Hi @ Dgc,

 

Could you please share a screenshot of the configuration of your flow?

 

What is the trigger in your flow? Is it "When a file is created" ?

Do you want to get the file's create time when a file is created?

 

If you want to get the file's create time when a file is created, you could add an action "Get file metadate" ,and the choose the "Last modified time" dynamic content of the action "Get file metadate".

 

Please refer to screenshot below to create the flow:

Capture.PNG

 

Please let me know if your issue could be solved.

 

 

Regards,
Alice Zhang

DonCat
Level: Power Up

Re: MS Flow from OneDrive to SQL Server, add file created date

Hi Alice,

 

I'd like to get the date/time the file was created not the 'Last Modified Time' is that possible?

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,331)