1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00
OpenIntegrations/docs/en/examples/Bitrix24/UploadFileToStorage.txt
2024-08-13 14:04:54 +00:00

17 lines
591 B
Plaintext

Filename2 = "Picture2.jpg";
Name = "Picture1.jpg";
Image2 = FunctionParameters["Picture"]; // Local path, URL or Binary Data
Image = FunctionParameters["Picture2"]; // Local path, URL or Binary Data
DestinationID = 3;
URL = FunctionParameters["Bitrix24_URL"];
Result = OPI_Bitrix24.UploadFileToStorage(URL, Filename2, Image2, DestinationID);
URL = FunctionParameters["Bitrix24_Domain"];
Token = FunctionParameters["Bitrix24_Token"];
Result = OPI_Bitrix24.UploadFileToStorage(URL, Name, Image, DestinationID, , Token);