Get file block
Make file block for SendMessage method
Function GetFileBlock(Val Name, Val URL) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Name | --title | String | ✔ | Picture name |
URL | --url | String | ✔ | File URL |
Returns: Structure - FileBlock
tip
Blocks at API documentation: Link
1C:Enterprise/OneScript code example
Name = "Image";
URL = "https://api.athenaeum.digital/test_data/document.docx";
Result = OPI_Bitrix24.GetFileBlock(Name, URL);
- Bash
- CMD/Bat
oint bitrix24 GetFileBlock \
--title "Image" \
--url "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"
oint bitrix24 GetFileBlock ^
--title "Image" ^
--url "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"
Result
{
"FILE": {
"NAME": "Image",
"LINK": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"
}
}