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

Question

Question

Repository Date Search syntax

asked on June 5, 2014

 I would like to search my repository on a date field and return only results that are current date -30 days is this possible?

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on June 5, 2014

In Workflow, you can use the "Date Token Calculator" activity to create two tokens, one for the current date and another for the current date plus 30 days. Then you can use a "Search Repository" activity where the syntax would look like

 

{[]:[Date]>=%(DateTokenCalculator_Today), <=%(DateTokenCalculator_30DaysFromNow)}

1 0

Replies

replied on June 5, 2014

You can definitely do this using the Search Pane. You may need to tweak the configuration a little bit to get it in line of what you're looking for but it will look something like this:

 

 

You can also use the date search and find files that have been modified in the last 30 days

 

0 0
replied on June 5, 2014

Modified will not work the search needs to look at the Experation Date field and provide search results for entries Due to expire in 30 days.  Example:  If the search is conducted on 05-07-2014 the search should return entries that have a Field Value of 06-05-2014.  Once I get the syntax to work I will use the it to  run a workflow that will notify a user that a contract is due to expire in 30 days.  I hope this explains it better.

 

Thanks

 

John 

0 0
APPROVED ANSWER SELECTED ANSWER
replied on June 5, 2014

In Workflow, you can use the "Date Token Calculator" activity to create two tokens, one for the current date and another for the current date plus 30 days. Then you can use a "Search Repository" activity where the syntax would look like

 

{[]:[Date]>=%(DateTokenCalculator_Today), <=%(DateTokenCalculator_30DaysFromNow)}

1 0
replied on June 6, 2014

That worked thanks for the help.

 

John

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

Sign in to reply to this post.