Notify
The notify function sends a custom notification to Slack or Discord if your organization is integrated with those platforms.
Usage: F2FSDK.notify(message, channel_id, destination)
Parameters:
- message: The text you want to send.
- channel_id: The ID of the channel where the message will be sent.
- How to get it: In Settings -> Integrations tab, integrate Slack/Discord and use the “Advanced” dropdown to find available channel IDs.
- destination: The platform for the notification. Options:
"slack"
or"discord"
.
Example Code:
F2FSDK.notify("New Visitor {{visitor.name}} just entered", "C01ABCD2EFG", "slack");
Last updated on December 23, 2024