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

Question

Question

.LFE file containing a search that I can send to someone every day

asked on September 29, 2020 Show version history

Hello,

I have a user who would like to receive an email every day containing an attachment that will open Laserfiche and show all relevant documents. In short, I want to return invoices that pertain to certain GL codes, as well as not having a certain tag assigned (the tag is applied when these documents get reviewed, and we exclude them from future search results this way).

Code snippet of the .lfe below:
 

<?xml version="1.0" encoding="utf-8"?>
<laserfiche>
  <repository name="RepositoryName">
    <search phrase='{[Accounts Payable]:[GL Codes]="1-750*"} | {[Accounts Payable]:[GL Codes]="1-190*"} | {[Accounts Payable]:[GL Codes]="1-170*"} & ({LF:id > 0} - {LF:Tags="Recorded by John Doe"})' />
  </repository>
</laserfiche>

My plan was to get this .lfe file created, throw it in Laserfiche somewhere, and attach it to this daily email. However, I must have something wrong here as I get the following error every time I try to open this file

Does anything stand out in the XML that might be causing this? The search syntax appears to be correct - I can paste it into an advanced search and it returns what I'm looking for.

Also very possible I'm overthinking this and there's a very simple way to do what I'm trying to do that doesn't involve this method. The search syntax will never change - it'll be the same search every day, if that changes anything.

Any help is appreciated. Thanks!

8.4.3
0 0

Replies

replied on September 29, 2020

Never mind - I had to escape the ampersand and quotes within my search syntax. Working as expected now.

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

Sign in to reply to this post.