Sensitive Property: trueChannel | channel | | | Slack channel, private group, or IM channel to send the message to. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
Text | text | | | Text of the Slack message to send. Only required if no attachment has been specified and 'Upload File' has been set to 'No'. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
Upload FlowFile | upload-flowfile | No | - Yes
- No
| Whether or not to upload and attach the FlowFile content to the Slack message. |
File Title | file-title | | | Title of the file displayed in the Slack message. The property value will only be used if 'Upload FlowFile' has been set to 'Yes'. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
File Name | file-name | ${filename} | | Name of the file to be uploaded. The property value will only be used if 'Upload FlowFile' has been set to 'Yes'. If the property evaluated to null or empty string, then the file name will be set to 'file' in the Slack message. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
File Mime Type | file-mime-type | ${mime.type} | | Mime type of the file to be uploaded. The property value will only be used if 'Upload FlowFile' has been set to 'Yes'. If the property evaluated to null or empty string, then the mime type will be set to 'application/octet-stream' in the Slack message. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
SSL Context Service | SSL Context Service | | Controller Service API: SSLContextService Implementations: StandardSSLContextService StandardRestrictedSSLContextService | Specifies an optional SSL Context Service that, if provided, will be used to create connections |
Dynamic Properties:
Supports Sensitive Dynamic Properties: No
Dynamic Properties allow the user to specify both the name and value of a property.
Name | Value | Description |
---|
<Arbitrary name> | JSON snippet specifying a Slack message "attachment" | The property value will be converted to JSON and will be added to the array of attachments in the JSON payload being sent to Slack. The property name will not be used by the processor. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
Relationships:
Name | Description |
---|
success | FlowFiles are routed to success after being successfully sent to Slack |
failure | FlowFiles are routed to failure if unable to be sent to Slack |
Reads Attributes:
None specified.Writes Attributes:
Name | Description |
---|
slack.file.url | The Slack URL of the uploaded file. It will be added if 'Upload FlowFile' has been set to 'Yes'. |
State management:
This component does not store state.Restricted:
This component is not restricted.Input requirement:
This component requires an incoming relationship.System Resource Considerations:
None specified.