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

Question

Question

Get Entry ID's in Workflow

asked on July 16, 2014

Hi All,

 

I have hit a bit of a brick wall with workflow.

 

Let’s say I want to grab a bunch of entry ID’s from a load of documents. So I use the search repository node to search for all client documents for client ‘123’. This search will return 10 results for example. Now what I want is all the entry ID’s for those 10 documents. Which workflow node will give me this as I can’t seem to find one that fits the bill? The only output token I seem to be able to get from the search repository is “result count”.

 

Cheers!

 

0 0

Answer

SELECTED ANSWER
replied on July 16, 2014

I believe the "For Each Entry" activity is what you need! This activity will run for each entry that your Search Repository activity returned and will give you access to the CurrentEntry_ID token (and a few more!). You can then assign that token into a multi-value token/field to get a list of all the entry IDs of your Search Repository search result:

 

0 0

Replies

replied on July 16, 2014

Just to add to this.

 

This is scheduled workflow.

 

One thing I have thought of. If you invoke a workflow within the "For Each Entry" will it use the Entry ID of each entry for the invoked workflow? This way you could trigger a WF from within a WF using the Entry ID for each entry thus getting round the problem?

 

Has anyone tested this before?

0 0
replied on July 16, 2014

When you use Invoke Workflow within the For Each Entry activity, make sure the Starting Entry (Properties pane) is set to equal "Activity: For Each Entry, Entry: Current Entry". Then the workflow you want to invoke will be trigger for each entry returned in your search result.

 

Hope this helps!

0 0
replied on July 16, 2014

Thanks Cathy,

 

You've just explained exactly what I've just already done!

 

However you are exactly right in what you are saying and confirmed what I thought. I missed the CurrentEntry_ID Token at first.

 

Thanks for your response! laugh   yes

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

Sign in to reply to this post.