1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-25 02:42:28 +02:00

Мелкие дополнения

This commit is contained in:
Anton Titovets 2024-08-13 14:36:39 +03:00
parent 30e2365817
commit 62eeeed8c0
5 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,12 @@
 Visibility = "UA";
PostID = FunctionParameters["Bitrix24_PostID"];
URL = FunctionParameters["Bitrix24_URL"];
Result = OPI_Bitrix24.AddPostRecipients(URL, PostID, Visibility);
OPI_TestDataRetrieval.WriteLog(Result, "AddPostRecipients (wh)", "Bitrix24");
URL = FunctionParameters["Bitrix24_Domain"];
Token = FunctionParameters["Bitrix24_Token"];
Result = OPI_Bitrix24.AddPostRecipients(URL, PostID, Visibility, Token);

View File

@ -0,0 +1,20 @@
 DestinationID = FunctionParameters["Bitrix24_HookSubfolderID"];
FolderID = FunctionParameters["Bitrix24_SubfolderID"];
URL = FunctionParameters["Bitrix24_URL"];
Result = OPI_Bitrix24.MakeFolderCopy(URL, FolderID, DestinationID);
OPI_TestDataRetrieval.WriteLog(Result, "MakeFolderCopy (wh)", "Bitrix24");
DestinationID = FunctionParameters["Bitrix24_SubfolderID"];
FolderID = FunctionParameters["Bitrix24_HookSubfolderID"];
URL = FunctionParameters["Bitrix24_Domain"];
Token = FunctionParameters["Bitrix24_Token"];
Result = OPI_Bitrix24.MakeFolderCopy(URL, FolderID, DestinationID, Token);
OPI_TestDataRetrieval.WriteLog(Result, "MakeFolderCopy", "Bitrix24");
Check_BitrixObject(Result);

View File

@ -0,0 +1,11 @@
 URL = FunctionParameters["Bitrix24_URL"];
FileID = FunctionParameters["Bitrix24_FileID"];
Result = OPI_Bitrix24.MarkFileAsDeleted(URL, FileID);
OPI_TestDataRetrieval.WriteLog(Result, "MarkFileAsDeleted (wh)", "Bitrix24");
URL = FunctionParameters["Bitrix24_Domain"];
Token = FunctionParameters["Bitrix24_Token"];
Result = OPI_Bitrix24.MarkFileAsDeleted(URL, FileID, Token);

View File

@ -0,0 +1,11 @@
 URL = FunctionParameters["Bitrix24_URL"];
FolderID = FunctionParameters["Bitrix24_FolderID"];
Result = OPI_Bitrix24.MarkFolderAsDeleted(URL, FolderID);
OPI_TestDataRetrieval.WriteLog(Result, "MarkFolderAsDeleted (wh)", "Bitrix24");
URL = FunctionParameters["Bitrix24_Domain"];
Token = FunctionParameters["Bitrix24_Token"];
Result = OPI_Bitrix24.MarkFolderAsDeleted(URL, FolderID, Token);

View File

@ -0,0 +1,18 @@
 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);