May 05 2020 02:58 AM - edited May 05 2020 02:59 AM
I am tasked to find all the files in a document library that has creation date is older than a year. Now this is a modern Team site, and files were copied to this library using ShareGate. When I say creation date, I mean the original creation date of the file, not the date that the files were copied to SP.
Now, trying to find it using PowerShell, I am doing this:
$afile = Get-PnPListItem -id 17 -List 3db40bc0-9bcc-88xx-a7e0-ab7b9e0910a1
$afile.FieldValues
FieldValues has "Created" and "Created_x0020_Date". Both have same value.
My question is, can I rely on this data and assume that "Created" or "Created_x0020_Date" has actually the original file creation date?
May 05 2020 05:49 AM