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

Question

Question

advanced search latest file

asked on February 11, 2016

Hi,

In my workflow i use advanced search syntax to find files in a folder. Search returns all the files it finds in the folder, but what i want is to return the latest file that was created. 

Currently i have to go through each file and compare creation date to find one with latest creation date.

Is there a simpler way to achieve this using advanced search syntax. 

1 0

Answer

SELECTED ANSWER
replied on February 11, 2016

Yes, you can do this in the "Search Repository" activity. After you have specified your advanced search syntax, set the following options:

  • Results to Return - First result
  • Additional Properties - Creation Date
  • Sort Found Entry By - Creation Date : Descending
2 0
replied on October 26, 2016

I would like to do the same thing. I have the Search Repository activity with  Results to Return and the Addtional Properties set as  Alexander Huang suggests.  I do not see "Sort Found Entries by"?

 

I am using workflow designer version 9.1.1.381. Is that option not in this version?

0 0
replied on October 26, 2016

No, it wasn't available in that version. It's available in Workflow 9.2 and higher.

0 0

Replies

You are not allowed to reply in this post.
replied on October 26, 2016

I would like to do the same thing. I have the Search Repository activity with  Results to Return and the Addtional Properties set as  Alexander Huang suggests.  I do not see "Sort Found Entries by"?

 

I am using workflow designer version 9.1.1.381. Is that option not in this version?

You are not allowed to follow up in this post.

Sign in to reply to this post.