Showing results for 
Search instead for 
Did you mean: 
Level 7

ExtLists Example


could you please provide an example how to read a local txt file in to a property? I've tested it with this rule:

Rule Criteria:
Incident.ID equals 5


Set User-Defined.logLine = List.OfString.ToString (ExtLists.StringList ("", "", ""), "")
FileSystemLogging.WriteLogEntry (User-Defined.logLine)

the local file placed in /opt/mwg/temp, which is included in "filesystem allowed for the file data access". Should I use placeholders?


0 Kudos
1 Reply
Level 11

Re: ExtLists Example


from first look, the rule looks ok. Please, take into account that this will produce one long line combining all lines in given text file.

You don't required to use placeholders, until you have a reson for it - for example, if files are called according to user or group names, or some other variable parameters, so you can avoid creation of separate configuration for every file on your disk. If no placeholders were specified in the External Lists settings, then specification of property parameters in the rule will have no effect.

If you have more questions on external lists, then you can ask them here.

0 Kudos