1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-27 21:48:56 +02:00
OpenIntegrations/docs/en/examples/Bitrix24/CreateSystemNotification.txt

20 lines
824 B
Plaintext
Raw Normal View History

 UserID = 1;
2025-01-18 17:35:34 +03:00
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
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));
2024-11-03 21:07:43 +03:00
Result = OPI_Bitrix24.CreateSystemNotification(URL, UserID, Text, , Attachments);
2024-09-21 10:57:02 +03:00
URL = "b24-ar17wx.bitrix24.by";
2025-02-18 14:08:09 +03:00
Token = "8536b467006e9f06006b12e400000001000...";
Tag = "New";
UserID = 10;
Result = OPI_Bitrix24.CreateSystemNotification(URL, UserID, Text, Tag, , Token);