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

OneDrive for Business files not showing DateCreated for files

Hi all, I'm trying to create an alerts workflow for OneDrive for Business that alerts a user to an item of content needing to be reviewed after 90 days but the dynamic data that's available once I've connected my OD4B doesn't seem to show this information. I've tried another action that appears to draw down more metadata (such as DateLastModified) but this still doesn't give me the original timestamp of a created item. Is it possible to get either this field or to create a Flow that'll allow send me a reminder email x days after it's been created.
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: OneDrive for Business files not showing DateCreated for files

Hi S_Andrews,

 

Please consider to add two Compose actions in your flow.

 

About your scenario, when we use the trigger “OneDrive for Business”, we do not be able to get a timestamp for the created date. Please consider to use a Compose action to generate a date for Created date.


The function you could use at here is:

3.PNG

 

Then use another Compose action to get a timestamp after 90 days:
“@formatDateTime(adddays(outputs('Compose'),90),'yyyy-MM-ddThh:mmZ')”

 

Then add an action “Delay until”, use the above Compose output as the timestamp.

 

A screenshot for the flow configuration should be:

4.PNG


Please try it on your side to see if it will meet your needs.

 

Reference materials:
1. More details about Compose action
https://flow.microsoft.com/en-us/blog/build-advanced-flows/
2.About formatDateTime function, please check this documentation about Workflow definition language:
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
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

1 REPLY 1
Community Support Team
Community Support Team

Re: OneDrive for Business files not showing DateCreated for files

Hi S_Andrews,

 

Please consider to add two Compose actions in your flow.

 

About your scenario, when we use the trigger “OneDrive for Business”, we do not be able to get a timestamp for the created date. Please consider to use a Compose action to generate a date for Created date.


The function you could use at here is:

3.PNG

 

Then use another Compose action to get a timestamp after 90 days:
“@formatDateTime(adddays(outputs('Compose'),90),'yyyy-MM-ddThh:mmZ')”

 

Then add an action “Delay until”, use the above Compose output as the timestamp.

 

A screenshot for the flow configuration should be:

4.PNG


Please try it on your side to see if it will meet your needs.

 

Reference materials:
1. More details about Compose action
https://flow.microsoft.com/en-us/blog/build-advanced-flows/
2.About formatDateTime function, please check this documentation about Workflow definition language:
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
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

Better Together Contest Finalists Announced!

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

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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 Kudoed Authors
Users online (7,169)