Bitrix24 Task Form Widget Application Workflow
detail.loadingPreview
Integrates a Bitrix24 task form widget with n8n for data handling and display.
About This Workflow
This workflow demonstrates how to integrate a Bitrix24 task form widget with n8n using webhooks. It handles application installation, registers custom placements within Bitrix24, retrieves task data, and displays it back to the user. The workflow also includes logic for processing and storing installation settings.
Key functionalities include:
- Receiving webhook events from Bitrix24.
- Extracting and managing Bitrix24 API credentials.
- Detecting installation events (
ONAPPINSTALL) and placement interactions. - Registering custom tabs (
TASK_VIEW_TAB) for tasks. - Saving and reading application settings.
- Fetching specific task details using the Bitrix24 API.
- Formatting task data for display in an HTML table.
- Responding to Bitrix24 with appropriate HTML content.
Key Features
- Webhook Integration: Seamlessly receives data from Bitrix24 via HTTP POST requests.
- Credential Management: Securely extracts and utilizes Bitrix24 API credentials.
- Event Handling: Differentiates between application installation and other events.
- Custom Placement Registration: Allows embedding custom content within Bitrix24 tasks.
- Settings Persistence: Saves and loads application configuration for continued operation.
- Task Data Retrieval: Fetches detailed information about specific Bitrix24 tasks.
- Dynamic HTML Generation: Creates user-friendly interfaces for task data display.
How To Use
- Bitrix24 Handler: This webhook node (
n8n-nodes-base.webhook) is the entry point for Bitrix24 events. Configure thepathto match your Bitrix24 application's webhook URL. - Extract Credentials: The
n8n-nodes-base.setnode extracts necessary credentials and parameters from the incoming Bitrix24 request. - Check Event Type: The
n8n-nodes-base.codenode analyzes the incoming data to determine if it's an application installation event. - Is Installation? An
n8n-nodes-base.ifnode branches the workflow based on whether it's an installation event.- If Installation:
- If Installation finished: An
n8n-nodes-base.ifnode checks for completion of the installation process.- Installation finished Response: If finished, a success message is sent back to Bitrix24.
- Register Placement: If not finished,
n8n-nodes-base.httpRequestregisters a custom placement (TASK_VIEW_TAB) in Bitrix24. - Set Settings Data:
n8n-nodes-base.setprepares the installation settings. - Create Settings File:
n8n-nodes-base.convertToFileconverts settings to JSON. - Save Installation Settings:
n8n-nodes-base.readWriteFilesaves the settings to a file. - Merge Installation info:
n8n-nodes-base.mergecombines information before sending the installation completion response. - Installation Response:
n8n-nodes-base.respondToWebhooksignals the completion of the installation.
- If Installation finished: An
- Else (Not Installation):
- Read Installation Settings:
n8n-nodes-base.readWriteFilereads previously saved settings. - Extract Installation Settings:
n8n-nodes-base.extractFromFileparses the settings JSON. - Merge request data with installation settings:
n8n-nodes-base.mergecombines incoming request data with loaded settings. - Process Settings:
n8n-nodes-base.functionprocesses the merged data, extracting task IDs and checking for validity. - Has Valid Settings?: An
n8n-nodes-base.ifnode checks if settings are valid.- If Valid Settings:
- Get Task Data:
n8n-nodes-base.httpRequestfetches task details from Bitrix24. - Format Task Data:
n8n-nodes-base.functionformats the task data into an HTML table. - Task View Response:
n8n-nodes-base.respondToWebhooksends the formatted task data as an HTML response.
- Get Task Data:
- Else (Invalid Settings):
- Error Response:
n8n-nodes-base.respondToWebhooksends an error message indicating missing or expired settings.
- Error Response:
- If Valid Settings:
- Read Installation Settings:
- If Installation:
Apps Used
Workflow JSON
{
"id": "25dae1fd-fd2a-41f4-9d20-7cf868081fd2",
"name": "Bitrix24 Task Form Widget Application Workflow",
"nodes": 23,
"category": "Automation",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 25dae1fd-fd2a...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Automated Google Drive Backup for n8n Workflows
Automatically back up n8n workflows to Google Drive on a schedule.
Generate Structured Metadata for Standup Bot
This workflow generates structured configuration metadata for a standup bot, saving it as a JSON file.
Supply Chain Delay Monitor
Automated monitoring and logging of supply chain delays using a webhook, text processing, embeddings, and a vector store.