...
On This Page
Table of Contents |
---|
Overview
To filter items by metadata, the target platform must support metadata. If the target platform does not support metadata, the "Metadata Content" custom filter will be disabled.
...
[Property]=Numeric Value 1 AND [Property]=Numeric Value 2
...
Identify the Columns to Filter on
Populate the property name value that corresponds with metadata content column.
Code Block |
---|
{ "transfer" : { "metadata_map": { "schemas": [ { "mappings": [ { "source": { "property": { "name": "LName", "type": "string" } }, "destination": { "property": { "name": "LName", "type": "string" } } } ] } ] } } } |
...
Filter Using REST API
For metadata filtering, the type
attribute can use filter_metadata
or metadata
. Both configurations work the same. If the target platform does not support metadata, the filter
or text
definition for the given connection will be ignored.
...
Multiple metadata filters may be joined by AND
or OR
conjunction clauses. There are two ways to define conjunctions; filters
or text
. These methods are based on the filter
and text
methods described above.
Attributes
Operator ( | Description | Equivalent |
|
| ||||||
---|---|---|---|---|---|---|---|---|---|---|
| equals |
|
|
| ||||||
| not equals |
|
|
| ||||||
| less than |
|
|
| ||||||
| less than or equal to |
|
|
| ||||||
| greater than |
|
|
| ||||||
| greater than or equal to |
|
|
| ||||||
| starts with |
|
|
| ||||||
| does not start with |
|
|
| ||||||
| ends with |
|
|
| ||||||
| does not end with |
|
|
| ||||||
| contains |
|
|
| ||||||
| does not contain |
|
|
| ||||||
| includes all the |
|
|
| ||||||
| does not include all the |
|
|
| ||||||
| the |
|
|
| ||||||
| the |
|
|
|
Example 1
The following example will include any files on the source that have a metadata field named "ProtectionLevel" with value of 50 or 100.
Code Block |
---|
{ ... "transfer": { ... "filter": { "source": [{ "action": "include", "rules": [{ "filter": { "conjunction": "or", "filters": [{ "name": "ProtectionLevel", "op": "eq", "value": 50 },{ "name": "ProtectionLevel", "op": "eq", "value": 100 }] }, "type": "filter_metadata" }], "type": "filter_rule" }] } } ... } |
Example 2
The following example will include any files on the source that have a metadata field named "ProtectionLevel" with value of 50 and "Author" equal to "John.”
...