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

Question

Question

Generate URL for Parent Folder

asked on October 17, 2018 Show version history

I have several workflows that manage our document library in Laserfiche.  In each workflow I use the Generate Web Client URL activity to create URLs for accessing the electronic Word/Excel documents.  This is working quite well, but now I've been asked NOT to open the document itself, but to open the parent folder of the document.

That works fine in one workflow where I copy the document to another folder (WF Parent image), but does not work when I am trying to generate the parent folder URL from a Starting Entry or a For Each Entry activity (WF Parent 3 & 4).

I would prefer to use WF to generate the URL token vs. having to assign the URL statically. (Which I did in WF Parent2 image)  Any thoughts on how to do so?

10-17-18 WF parent.PNG
10-17-18 WF parent 2.PNG
10-17-18 WF parent 3.PNG
10-17-18 WF parent 4.PNG
0 0

Replies

replied on October 17, 2018

Add a Find Entry activity for %(entry Path). That will give you a handle on the parent folder that you can use in the other activities.

You can do the same for the documents in For Each Entry, there will be a token for the current entry's path.

1 0
replied on October 17, 2018

Miruna I will give that a try, thanks!!

0 0
replied on October 18, 2018 Show version history

Miruna,  I used a Find Entry w/%(Entry Path) and it's not giving me any of the field values, nor the correct path of the starting entry.

10-18-18 WF parent.PNG
10-18-18 WF parent 2.PNG
0 0
replied on October 18, 2018

So, Find Entry on %(Entry Path) gives you the folder your starting entry was in. You can use that in Generate WA/WL URL activities to get a URL to the folder.

 

0 0
replied on October 19, 2018

Miruna, I was able to use the Find Entry on %(Entry Path) to give me the folder I needed, but using the Parent folder still isn't giving me the results I want.  So I chose to use Output Entry and this is working fine.

I do have some additional questions about what I'm seeing as results when using the %(Entry Path).  Would you mind addressing those questions off-line?

0 0
replied on October 19, 2018

Sure. Though, I might end up sending you to Tech Support if we need to get logs files and such.

0 0
replied on October 19, 2018

Understood.  I think it's something you will be able to answer without that.  I'll send my question via email. Thanks.

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

Sign in to reply to this post.