1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-18 23:48:56 +02:00
OpenIntegrations/docs/en/examples/Bitrix24/UploadFileToFolder.txt
2024-08-13 14:36:39 +03:00

19 lines
693 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 = FunctionParameters["Bitrix24_FolderID"];
URL = FunctionParameters["Bitrix24_URL"];
Result = OPI_Bitrix24.UploadFileToFolder(URL, Filename2, Image2, DestinationID);
OPI_TestDataRetrieval.WriteLog(Result, "UploadFileToFolder (wh)", "Bitrix24");
URL = FunctionParameters["Bitrix24_Domain"];
Token = FunctionParameters["Bitrix24_Token"];
Result = OPI_Bitrix24.UploadFileToFolder(URL, Name, Image, DestinationID, Token);