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

Question

Question

Find shortcuts by entry ID

asked on August 1, 2017 Show version history

Recently we have been tasked with helping to reverse a company's RME version of Laserfiche.  They have record folders with documents and they have shortcuts to those documents in other folders.  Because of how it was setup there are no pre-determined path.  Their old IT basically just passed a shortcut to the folder the documents was created in so we have no rules.  What I am trying sounds easy but I cannot get it to where a search in Laserfiche by entry ID give me a shortcut.

Basically I want to find all documents in a record series folder.  Then I want to For Each entry ID and search up out of the record series folders.  If the shortcut is found, move the document to the same path as the shortcut.

 

I have simply setup a test where I have a document in folder A and a shortcut to it in folder B (folder B is not a subfolder of A).  When I run a Search Repository in Workflow I am simply doing a Entry ID combined with a within folder.  When I do it to folder A I get the document.  When I search in folder B I get nothing.

Anyone have any ideas why?

 

Thanks

 

Edit:  So it seems that the entry ID of a document and its shortcut are the same in the Properties menu.  However when displaying the Entry ID column they are different..  So there is some kind of unique shortcut ID.  Where is the DB can I translate a entry ID to its shortcut ids?

 

Nevermind, I found that in the toc table there is a linkto field.  Shortcuts have their linkto fields populated with the entryID they are associated with.

0 0

Replies

replied on August 1, 2017

This should hopefully give you a good start on a process.  In your For Each Entry (search results) loop, use the retrieve shortcuts activity.  Make another For Each Entry loop but use the results of the Retrieve Shortcuts.  Use a token to store the paths of the shortcuts.  Delete the shortcuts and use the paths in the token to move the original file.

Shortcuts.jpg
Shortcuts.jpg (85.83 KB)
0 0
replied on August 1, 2017

To address your entry ID question, shortcut properties show you the target entry's properties. However, if you turn on the Entry ID column in the Client, you'll get the shorcut's actual entry ID.

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

Sign in to reply to this post.