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://api.athenaeum.digital/test_data/document.docx";

Result = OPI_Bitrix24.GetFileBlock(Name, URL);
    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"
}
}