mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-18 23:48:56 +02:00
22 lines
891 B
Plaintext
22 lines
891 B
Plaintext
UserID = 1;
|
|
|
|
URL = FunctionParameters["Bitrix24_URL"];
|
|
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);
|
|
|
|
OPI_TestDataRetrieval.WriteLog(Result, "CreateSystemNotification (wh)", "Bitrix24");
|
|
|
|
URL = FunctionParameters["Bitrix24_Domain"];
|
|
Token = FunctionParameters["Bitrix24_Token"];
|
|
Tag = "New";
|
|
UserID = 10;
|
|
|
|
Result = OPI_Bitrix24.CreateSystemNotification(URL, UserID, Text, Tag, , Token);
|