Skip to main content

Get file block

Make file block for SendMessage method

Function GetFileBlock(Val Name, Val URL) Export

ParameterCLI optionTypeRequiredDescription
Name--titleStringPicture name
URL--urlStringFile URL
Returns

Structure - FileBlock

tip

Blocks at API documentation: Link


1C:Enterprise/OneScript code example
Name = "Image";
URL = "https://hut.openintegrations.dev/test_data/document.docx";

Result = OPI_Bitrix24.GetFileBlock(Name, URL);
oint bitrix24 GetFileBlock \
--title "Image" \
--url "https://hut.openintegrations.dev/test_data/document.docx"
Result
{
"FILE": {
"NAME": "Image",
"LINK": "https://hut.openintegrations.dev/test_data/document.docx"
}
}