Slack GitHub

📊 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

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