cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
chrism90
Level: Powered On

Date Function

Hi all,

 

I am trying to create a flow that copys a file from drop box to a SharePoint directory. If its the first file that has been copied that day, it will create a folder formatted as the date, e.g. 20-12-2017. The file copying works fine but I have been unable to get the creation of the folder working when usign the date on the day.. Any help would be greatly appreicated!

 

Thanks,

 

Chris

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Date Function

Hi @chrism90,

 

Could you please show a screenshot of your flow’s configuration?

Do you want to copy the file to SharePoint library when a file is created in Dropbox?

Further, do you want to create a folder formatted as the date and copy the file to it within SharePoint if it’s the first file that has been copied that day?

 

I have made a test on my side and please take a try with the following workaround:

  • Add “When a file is created” trigger of Dropbox connector, specify Folder.
  • Add a “Create file” action of SharePoint connector, specify Site Address, within Folder Path field set to following formula:
/MyLibrary/utcNow(…) expression

Details about utcNow(…) expression as below:

utcNow('dd-MM-yyyy')

Image reference:2.jpg

The flow works successfully as below:3.JPG

 

4.JPG

 

5.JPG

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: Date Function

Hi

In order to adapt date format to your requirements I would suggest you the following expression

 

utcNow('dd-MM-yyyy')

 

Hope this helps

 

 




If anyone is trying to help you with an issue, the fastest way to say thanks is by kudoing. Be grateful, Thumbs up!

Proud to be a Flownaut!





Community Support Team
Community Support Team

Re: Date Function

Hi @chrism90,

 

Could you please show a screenshot of your flow’s configuration?

Do you want to copy the file to SharePoint library when a file is created in Dropbox?

Further, do you want to create a folder formatted as the date and copy the file to it within SharePoint if it’s the first file that has been copied that day?

 

I have made a test on my side and please take a try with the following workaround:

  • Add “When a file is created” trigger of Dropbox connector, specify Folder.
  • Add a “Create file” action of SharePoint connector, specify Site Address, within Folder Path field set to following formula:
/MyLibrary/utcNow(…) expression

Details about utcNow(…) expression as below:

utcNow('dd-MM-yyyy')

Image reference:2.jpg

The flow works successfully as below:3.JPG

 

4.JPG

 

5.JPG

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
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 (6,172)