...
On This Page
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
...
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"
}
}
}
]
}
]
}
}
} |
...
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 (filter:op ) | Description | Equivalent Text Operators | Filter Example
| Text Example
|
---|
| equals | | Code Block |
---|
"filter": {
"name": "ProtectionLevel",
"op": "eq",
"value": "Sensitive"
} |
| "[ProtectionLevel]=\"Sensitive\""
|
| not equals | | Code Block |
---|
"filter": {
"name": "ProtectionLevel",
"op": "ne",
"value": "Sensitive"
} |
| "[ProtectionLevel]!=\"Sensitive\""
|
| less than | | Code Block |
---|
"filter": {
"name": "ProtectionLevel",
"op": "lt",
"value": 100
} |
| "[ProtectionLevel]<100"
|
| less than or equal to | | "filter": {
"name": "ProtectionLevel",
"op": "le",
"value": 100
}
| "[ProtectionLevel]<=100"
|
| greater than | | "filter": {
"name": "ProtectionLevel",
"op": "gt",
"value": 100
}
| "[ProtectionLevel]>100"
|
| greater than or equal to | | "filter": {
"name": "ProtectionLevel",
"op": "ge",
"value": 100
}
| "[ProtectionLevel]>=100"
|
| starts with | = with * appended to the end of the value
| "filter": {
"name": "Author",
"op": "starts_with",
"value": "John"
}
| "text": "[Author]=\"John*\""
|
Code Block |
---|
not_starts_with |
| does not start with | <> or !=
| "filter": {
"name": "Author",
"op": "not_starts_with",
"value": "John"
}
| "text": "[Author]!=\"John*\""
|
| ends with | = with * prepended to the beginning of the value
| "filter": {
"name": "Author",
"op": "ends_with",
"value": "Anderson"
}
| "text": "[Author]=\"*Anderson\""
|
| does not end with | <> or !=
| "filter": {
"name": "Author",
"op": "not_ends_with",
"value": "Anderson"
}
| "text": "[Author]!=\"*Anderson\""
|
| contains | | "filter": {
"name": "Author",
"op": "contains",
"value": "John"
}
| "text": "[Author]=\"*John*\""
|
| does not contain | <> or !=
| "filter": {
"name": "Author",
"op": "not_contains",
"value": "John"
}
| "text": "[Author]!=\"*John*\""
|
| includes all the values | | "filter": {
"name": "ProtectionLevel",
"op": "in",
"value": ["Not Sensitive"]
}
| "text": "[ProtectionLevel] IN (\"Not Sensitive\")"
|
| does not include all the values | | "filter": {
"name": "ProtectionLevel",
"op": "not_in",
"value": ["Sensitive", "Highly Sensitive"]
}
| "text": "[ProtectionLevel] NOT IN (\"Sensitive\", \"Highly Sensitive\")"
|
| the value is empty | <>"*" or !="*"
| "filter": {
"name": "Author",
"op": "empty",
"value": ""
}
| "text": "[Author]!=\"*\""
|
| the value is not empty | | "filter": {
"name": "Author",
"op": "not_empty",
"value": ""
}
| "text": "[Author]=\"*\""
|
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.
...