cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Highlighted
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

 

 


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
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
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,756)