update the createddate or createdtime of a file

70 views
Skip to first unread message

Temple Rodgers

unread,
May 10, 2022, 5:47:53 AM5/10/22
to GAM for Google Workspace
I have scripts where I'm updating the modifieddate of (millions of) files but I'd really like to update the createddate so that the date isn't lost if someone edits the file ... it seems like this can't be done if I substitute modifieddate and put createddate instead, am I right?

gam user <user> update drivefile teamdriveid <GFileID> modifieddate <YYYY-MM-DD>

I realise I could add the date to the description of the file but I don't really want to do that as I'm already putting other information in there.

thank you

Ross Scroggs

unread,
May 10, 2022, 2:11:19 PM5/10/22
to google-ap...@googlegroups.com
Temple,

GAM doesn't allow changing the createdTime(Date) on an update; I'm assuming it's that way because the API doesn't allow it.

Ross


Disclaimers apply, for full details see: https://hackney.gov.uk/email-disclaimer

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/730ca5a7-d88d-4454-a6d8-06eb19c52017n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages