Slack
| 📊 Overview: 1 Properties | 1 Constructor | 7 Functions |
📝 Description
Creates Slack integration for the specified channel, creating it if it doesn’t exist
🕐 Last updated: 2025-12-10T11:45:24.337Z
📑 Table of Contents
- 📋 Properties (1)
- 🏗️ Constructor (1 param)
- ⚙️ Functions
- Regular Functions
- newHttpRequest (2 params) →
4D.HTTPRequest - createChannel (1 param) →
Text - setChannelID (1 param) →
Boolean - convertBlocks (2 params) →
$BlocksCollection : Collection - createMessage (2 params) →
$MessageTimeStamp : Text - updateMessage (3 params) →
Boolean - deleteMessage (1 param) →
Boolean
- newHttpRequest (2 params) →
- Regular Functions
Properties
| Property | Type | Default | Description |
|---|---|---|---|
ChannelID | Text | - | Slack channel ID for posting messages |
Constructor
constructor
[🏗️ constructor]
Class constructor($ChannelName : Text)
Creates Slack integration for the specified channel, creating it if it doesn’t exist
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$ChannelName | Text | - | - |
Functions
Regular Functions
newHttpRequest
Function newHttpRequest($Url : Text; $Options : Object) -> 4D.HTTPRequest
Creates HTTP request with Slack authorization header
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$Url | Text | - | - |
$Options | Object | - | - |
Returns: 4D.HTTPRequest
createChannel
Function createChannel($ChannelName : Text) -> Text
Creates a new Slack channel and returns its channel ID
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$ChannelName | Text | - | - |
Returns: Text
setChannelID
Function setChannelID($ChannelName : Text) -> Boolean
Finds and sets the channel ID for the specified channel name, returns false if not found
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$ChannelName | Text | - | - |
Returns: Boolean
convertBlocks
Function convertBlocks($HeaderText : Text; $Blocks : Collection) -> $BlocksCollection : Collection
Converts text and collections into Slack block format for rich message formatting
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$HeaderText | Text | - | - |
$Blocks | Collection | - | - |
Returns: Collection
createMessage
Function createMessage($HeaderText : Text; $Blocks : Collection) -> $MessageTimeStamp : Text
Posts a new message to the Slack channel, returns message timestamp for future updates
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$HeaderText | Text | - | - |
$Blocks | Collection | - | - |
Returns: Text
updateMessage
Function updateMessage($MessageTimeStamp : Text; $text : Text; $Blocks : Collection) -> Boolean
Updates an existing Slack message by timestamp, returns success status
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$MessageTimeStamp | Text | - | - |
$text | Text | - | - |
$Blocks | Collection | - | - |
Returns: Boolean
deleteMessage
Function deleteMessage($MessageTimeStamp : Text) -> Boolean
Deletes a Slack message by timestamp, returns success status
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$MessageTimeStamp | Text | - | - |
Returns: Boolean
Generated from Slack.4dm