Table of Contents
String contains condition
Table of Contents
The String Contains Condition checks whether a string (text, multiline text field) contains a specific value, e.g., so users can easily check whether a string (text, e.g., filename) contains parameters for auto-tagging.
The Business Rule checks whether the string contains the specified value and, if so, executes the action.
Prerequisites
Existing Content Item with text in Metadata in Picturepark.
- Open Settings
- Open Business Rules
- Add a new business rule
- Name: Check Title for Product Name
- Trigger: Update, Content, Main doc
- Condition: String Contains Condition
Fieldpath: fileMetadata.filePathValues to match: ["ProductXYZ", "ProductABC"]Case sensitive: FalseValue to Store: "NewProductName"Store in: variableForProductName - Transformation: none
- Action:
- Enqueue Create Embed Action
Embed Name: Product Key Visual
Format ID: Preview (which format to use)
Conversion string: (e.g., rotate90)
Lock delivery options: true (select if users can manipulate the embed link parameters)
Expiration date: variable or DateTime in ISO format (2022-10-10T10.00.00Z) with or without milliseconds
Store URL in: an optional variable, which can then be assigned via Assign Value Action, or assign layer with default value
- Enqueue Create Embed Action
Specific Definitions
| Property | Value |
| kind | StringContainsCondition |
| fieldPath | JSON path to the field. |
| valuesToMatch | A list of string value that will be checked if at least one of them is contained in the string value identified by the FieldPath. |
| valueToStore | Optional value to be stored in the variable identified by StoreIn. It can be simple value or a complex object. |
| caseSensitive | Decide if the StringContains condition should be processed case sensitive. |
| storeIn | Optional variable name to store the ValueToStore in |