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

Question

Question

Workflow Utilization of Search Repository Search Results

asked on April 22, 2013 Show version history

I am trying to run a search from a workflow using the search repository activity. I cannot find a way to utilize all of my search results to put in the body of an email. I am only able to find FirstResult options when putting tokens in later activities.

 

Is there a way to utilize all results from the Search Repository activity?

 

1 0

Answer

APPROVED ANSWER
replied on May 29, 2013 Show version history

In order to create a report of your search results in the body of an e-mail, you will have to loop through each of the search results and add the values you want to a token. The final workflow would look something like this:

 

Start by performing the desired search with the Search Repository activity. Then create the token that will store the search result values. In this activity, you will also want to start the table and add the column names.

 

 

From here, we loop through each search result and append the values we want to the Search Results token we made earlier.

 

 

Once that loop is complete, we need to close the table.

 

 

Now, we can reference this token in the body of the e-mail and present it as a report. We also need to indicate that this token should be treated as HTML, and that values are separated by link breaks. We do this by going into the Token Editor.

 

 

The token should now look like this.

 

 

When you run this workflow, an e-mail will be sent out like this.Note: I searched for documents with the Accounting template.

 

4 0

Replies

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

Sign in to reply to this post.