Getting the Expiry Of a Document


#1

Hello everyone,

Is there a way to retrieve the remaining lifespan of a particular document?

What i"m trying to do now is that I have this master document that has an expiry of 600 seconds.

and it is used to build smaller sub documents base on it. These sub documents will be stored with an expiry too.
What I want to do is to ensure that this mater document and the sub documents expire at the same time.

So what I want to do is take the remaining lifespan of the master document, and set it to the sub documents so that they expire together.

Thanks in advance :smile:


#2

Hey danielphua,

Unfortunately there is no way to retreive the expiration time of a document after you’ve set it. You could try maybe storing the expiration in a field inside the document as a workaround?

Cheers, Brett