You are viewing limited content. For full access, please sign in.

Question

Question

Workflow Date Token

asked on May 7, 2013 Show version history

 

I have looked and haven’t found anything, but is there any way to grab a document’s Creation or Modification date as it goes through a workflow?  Not a date found in metadata but the systems creation date.

 

Thoughts?

3 0

Answer

APPROVED ANSWER
replied on January 6, 2014

As of Workflow 9.1, the creation and last modification dates, along with various other entry properties, are available as tokens in the Find Entry, Find Entries and Search Repository activities.

6 0

Replies

replied on May 7, 2013 Show version history

Hello,

 

As of Workflow 9.0, the only way to get creation/modification date for a document is to write a small script to do so. We are, however, looking into making that information more accessible in future versions of Workflow.

1 0
replied on January 3, 2014

At the very least, someone should be able to use a document's creation date in workflow without resorting to VB script.  "Looking into?"   What year is this....1993?

0 2
APPROVED ANSWER
replied on January 6, 2014

As of Workflow 9.1, the creation and last modification dates, along with various other entry properties, are available as tokens in the Find Entry, Find Entries and Search Repository activities.

6 0
replied on January 15, 2014

Here are all 3 lines to be wrapped in an «SDK Script» activity:

 

            Dim docInfo as Laserfiche.RepositoryAccess.Documentinfo = wrapper.BoundEntry
            Dim DateTime as DateTime = docInfo.CreationTime
            SetTokenValue("Date Created", DateTime)

 

This returns the «Date created» value of a document into token %(Date Created)

 

For «Last modified» value, use «docInfo.LastModifiedTime» instead

 

Finally for folders, use «Laserfiche.RepositoryAccess.Folderinfo» instead

 

Hope that helps,

 

Lou

 

1 0
replied on January 28, 2014

Lou,

 

I am attempting to set up the same script to pull the creation date for a document in workflow. When I save the script, I receive the error message: 'Laserfiche.RepositoryAcess.Documentinfo' is not defined. 

 

Do I need to define this at the top of the script where the libraries are imported?

 

Thanks,

 

Zach

0 0
replied on January 29, 2014

Zach,

 

RepositoryAccess is the default reference for scripts in WF9.1, you can add RepostioryAccess90 as a reference in WF 9.0 if you have it installed on the WF Server. Or you can use the following script that uses the default LFSO:

 

            Dim doc as LFDocument  = me.entry
            Dim Datetime as DateTime = doc.CreateDate
            SetTokenValue("Date Created", Datetime)

 

1 0
replied on January 30, 2014

We are still running WF9.0 which would explain the issue. Thank you for your help Miruna!

0 0
replied on May 15, 2014

as my coworker tony pointed out to me.... if you add the Find Entry activity, select "with ID," click the ">" button, select Global, then ID and choose Creation Date from the Additional Properties list, this gets you the token you need.

1 0
replied on May 17, 2018

Is something like this available yet? Looking for how to use the entry's Creation date in WF.

0 0
replied on May 17, 2018

Yes, Find Entry can get the creation date for a document.

0 0
replied on May 17, 2018

Found it. Took me time to figure out where "Additional Properties" was. :)

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.