Skip to main content
We have previously seen how to set a single archive restriction to limit the number of rows returned by the agent. The following code segment was used to set a condition to display Person information such as fullName, firstName, and personNumber of those who have a ContactId, equal to 2.
CS
Since the ArchiveAgent method requires an array of ArchiveRestrictionInfo we would have to create an array of the specific type as above and we may include as many restrictions to the array as we want. For example, if we want to retrieve a list of persons whose ContactId is equal to 2 and whose fullName begins with “U” the above statement can be modified:
In this case, the output will be rows that match both the above restrictions. It is possible to add any number of restrictions on which the archive result should be based on.

Output

The output after execution is something similar to this: