Forum Discussion
Using the "in" in URL Filters
- Anonymous6 years ago
Hi Ballwood81 ,
As mentioned in reference:
Filter on more than one value in a field
To filter on more than one value in a single field, you use the in operator instead of the and operator. The syntax is:
URL?filter=Table/Field in ('value1', 'value2')
Using the same example, to filter the report to show data only for stores in "NC" (North Carolina) or "TN" (Tennessee), append the URL with the following;
?filter=Store/Territory in ('NC', 'TN')
Filter on a field
To filter the report to show data only for stores in "NC" (North Carolina), append the URL with the following;
?filter=Store/Territory eq 'NC'
Using "eq" or "in "depends on the values you wanna filter.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Hi Ballwood81 ,
As mentioned in reference:
Filter on more than one value in a field
To filter on more than one value in a single field, you use the in operator instead of the and operator. The syntax is:
URL?filter=Table/Field in ('value1', 'value2')
Using the same example, to filter the report to show data only for stores in "NC" (North Carolina) or "TN" (Tennessee), append the URL with the following;
?filter=Store/Territory in ('NC', 'TN')
Filter on a field
To filter the report to show data only for stores in "NC" (North Carolina), append the URL with the following;
?filter=Store/Territory eq 'NC'
Using "eq" or "in "depends on the values you wanna filter.
Best Regards,
Kelly