cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Users online (10,915)