2024-08-13 14:04:54 +00:00
|
|
|
UserID = 1;
|
|
|
|
|
2024-09-17 15:57:44 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_URL"];
|
2024-08-13 14:04:54 +00:00
|
|
|
Text = "Message text";
|
|
|
|
Image = "https://raw.githubusercontent.com/Bayselonarrend/OpenIntegrations/main/service/test_data/picture.jpg";
|
|
|
|
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
|
|
|
|
|
|
|
Attachments = New Array;
|
|
|
|
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
|
|
|
|
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
|
|
|
|
|
|
|
|
Result = OPI_Bitrix24.CreateSystemNotification(URL, UserID, Text, ,Attachments);
|
|
|
|
|
2024-09-17 15:57:44 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_Domain"];
|
|
|
|
Token = FunctionParameters["Bitrix24_Token"];
|
2024-08-13 14:04:54 +00:00
|
|
|
Tag = "New";
|
|
|
|
UserID = 10;
|
|
|
|
|
|
|
|
Result = OPI_Bitrix24.CreateSystemNotification(URL, UserID, Text, Tag, , Token);
|