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

Question

Question

How can I capture entries parent folder name and insert into the entries field?

asked on September 8, 2014

Hi

 

I have a need to capture the entries' parent folder name and assign it to the entry's Field.   I thought this would be simple but I don't seem to succeed.  I see parenID token to capture but I don't see anything like ParentName.

 

I am not sure what I am missing, I would appreciate some help. 

 

Thanks

0 0

Answer

SELECTED ANSWER
replied on September 9, 2014

Simply apply a regular expression to the entry path like:

 

0 0
replied on September 9, 2014 Show version history

Thanks Louis, it worked

0 0

Replies

replied on June 17, 2015

Hi,

 

I tried using the Entry ID token instead to retrieve the entry id for the parent folder but I get the entry ID of for the document itself. Shouldn't this work for the entry id also?

 

Thanks

0 0
replied on June 17, 2015

No, the entry ID value is the entry that started the workflow. If you want the ID of the parent document, you'll want to run Find Entry on the Entry Path to get a hold of the folder, then use the %(FindEntry_OutputEntry_ID) token.

0 0
replied on June 17, 2015

Thanks so much for the response. I added the Find Entries activity (I'm using this activity for the first time), but I didn't see that token available when I browse the available tokens. All is see a Result Count and Entries Found Count token.

 

I also had the Route Entry to Folder activity in my workflow and saw it was storing the token %(...parentfolder_id..) and it worked.

 

Thanks again , but I am curious what am I missing with trying to get the token using Find Entries activity.

0 0
replied on June 17, 2015

You want a Find Entry, not Find Entries. Find Entries returns a collection of entries, so it can't generate a single token for the entry ID.

If you already have an existing activity like Route to Folder, then that's the more efficient way to go.

0 0
replied on June 18, 2015

Thanks so much for your help!

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

Sign in to reply to this post.