Forum Discussion

MVC_User's avatar
MVC_User
Copper Contributor
Sep 06, 2021

Sharepoint Library Created and Modified Dates

Hello.

 

I have a question about Files Created dates and retention Policies.

If when i create my site y upload lots of files to a library at the same time, the file created date shows as the date the file was loaded - if there is a Retention policy applied that is to keep the file (for exmaple) 5 years, if i cannot modify the Created field on the library to show the correct date, how will the policy work correctly then?

is there a way to change the Created Date (without having to ad a new column for every library)

 

thank you

  • MVC_User 
    Hi,
    Is there a legal requirement to use the created date and not the modified date?
    You may want to consider using tools that retain the original create/modify date.

    Paul | SLIM Applications

  • Kelvin_Kirby's avatar
    Kelvin_Kirby
    Brass Contributor
    I have the same issue - did you find a solution to this problem?

    Thanks 

    Kelvin
    • SvenSieverding's avatar
      SvenSieverding
      Bronze Contributor

      Kelvin_Kirby 

      You can use the rest endpoint 

      api/web/getfilebyserverrelativeurl('<absolute path to document>')/listitemallfields/ValidateUpdateListItem()

       

      to update fields like "created" and "created by"

      This works great from Power Automate



      • claire2020's avatar
        claire2020
        Copper Contributor

        SvenSieverding 

         

        How can I apply this for updating the Created with another date field, i.e. Fieldname Created - Field Value WFCreated - my flow like this runs successfully but the outputs have an error message "

        "Enter a date and time like this: 23/02/2012 14:25" - I'm a novice at http, but I guess I need to convert the timezone, but have no idea how to do this?  

Resources