FindInCases

Searches for keywords in specified cases with specified procedure names.

Syntax

FindInCases("keywords","targetCases");
FindInCases("keywords","targetCases","procedureNames");

Function arguments

  • keywords – (String) Keywords to be found.
  • targetCases – (String) Specifies whether to search only in current case, all but current case or all cases. Allowed values [ current | notcurrent | all ]
  • procedureNames – (String) [Optional] List of names of procedures separated by semicolon (’;’). If not set, all cases will be searched.

Return value

This function returns String.
Returns case identiefiers separated by semicolon.

Examples

Example 1:
This will return case identifiers for every case that contains specified keyword in any field, comment or attachment.

FindInCases("FV1234//2014", "all");

Example 2:
This will search for keyword in all but current case, in procedures named 'Invoice’ or 'Order’ and store case identifiers in 'keywordOccurences’ variable. If any occurences were found, ShowMessage will be called.

keywordOccurences = FindInCases("FV1234//2014", "notcurrent", "Invoice;Order");
if(Length(keywordOccurences) > 0){
ShowMessage(2,"Invoice has already been registered in cases " + keywordOccurences)
}
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.