How it works
To keep Slack and Microsoft SQL in sync, connect them with a ready-made scenario — changes flow automatically.
- Starts when: 01 Telegram Trigger: Intake + Status
- Check: 02 Switch: Route by Command
- If yes: Welcome Message
- If no: 03b FN: Parse Status Command
- Check: 03b IF: Has Valid Correlation ID Format
- If yes: 03b1 IF: Has Correlation ID
- If yes: 04b DB: Get Ticket Status
- Check: 04b1 IF: No Ticket Found
- If yes: Send a text message1
- If no: 04b0 IF: DB Lookup Failed?
- If yes: 05b0 Telegram: Status DB Error
- If no: 04b1 IF: Ticket Belongs To User
- If yes: 05b Telegram: Status Reply
- If no: 05b1 Telegram: Unauthorized Status Check
- If no: 05b Telegram: Status Reply (Error)
- If no: Send a text message2
- If no: 03a FN: Normalize + Hash
- Then: 04a DB: Upsert Ticket
- Then: 05a Telegram Ack
- If no: 03c FN: Parse Update Command
- Check: 03c0 IF: Is Operator
- If yes: 03c1 IF: Has Correlation ID
- If yes: 03c2 IF: Valid Status
- If yes: 04c DB: Update Ticket Status
- Then: 04c2 DB: Insert Audit Row
- Then: 04c1 DB: Get Ticket Owner
- Check: 04c1a IF: Resolved or In Progress
- If yes: 05c1a Telegram: Notify Resolved
- Check: Notify Failed?
- If yes: Execute a SQL query
- If no: 05c1b Telegram: Notify In Progress
- Then: 05c Telegram: Update Confirmation
- Check: 05c0 IF: Operator Reply Failed?
- If yes: Telegram: Admin Alert — Operator Reply Failed
- If no: 05c Telegram: Invalid Status
- If no: Send a text message
- If no: 05c0 Telegram: Unauthorized Update Attempt
- If no: Check Admin
- If yes: DB: List Tickets
- Then: Code in JavaScript
- Then: Send a text message4
- If no: Send a text message3
- If no: Telegram: Invalid Command
You can launch this Slack + Microsoft SQL integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.