diff --git a/docs/en/examples/Bitrix24/AddPostRecipients.txt b/docs/en/examples/Bitrix24/AddPostRecipients.txt new file mode 100644 index 000000000..e0180c4c5 --- /dev/null +++ b/docs/en/examples/Bitrix24/AddPostRecipients.txt @@ -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); diff --git a/docs/en/examples/Bitrix24/MakeFolderCopy.txt b/docs/en/examples/Bitrix24/MakeFolderCopy.txt new file mode 100644 index 000000000..28fce2c66 --- /dev/null +++ b/docs/en/examples/Bitrix24/MakeFolderCopy.txt @@ -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); diff --git a/docs/en/examples/Bitrix24/MarkFileAsDeleted.txt b/docs/en/examples/Bitrix24/MarkFileAsDeleted.txt new file mode 100644 index 000000000..9ca59bc1a --- /dev/null +++ b/docs/en/examples/Bitrix24/MarkFileAsDeleted.txt @@ -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); diff --git a/docs/en/examples/Bitrix24/MarkFolderAsDeleted.txt b/docs/en/examples/Bitrix24/MarkFolderAsDeleted.txt new file mode 100644 index 000000000..f91a9f179 --- /dev/null +++ b/docs/en/examples/Bitrix24/MarkFolderAsDeleted.txt @@ -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); diff --git a/docs/en/examples/Bitrix24/UploadFileToFolder.txt b/docs/en/examples/Bitrix24/UploadFileToFolder.txt new file mode 100644 index 000000000..ad3e84ae0 --- /dev/null +++ b/docs/en/examples/Bitrix24/UploadFileToFolder.txt @@ -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);