2024-08-13 14:04:54 +00:00
|
|
|
Text = "New post text";
|
|
|
|
Title = "New post title";
|
2024-09-17 15:57:44 +03:00
|
|
|
Image1 = FunctionParameters["Picture"]; // URL, Path or Binary Data
|
|
|
|
PostID = FunctionParameters["Bitrix24_PostID"];
|
2024-08-13 14:04:54 +00:00
|
|
|
|
|
|
|
Files = New Map;
|
|
|
|
Files.Insert("1.png", Image1);
|
|
|
|
|
2024-09-17 15:57:44 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_URL"];
|
2024-08-13 14:04:54 +00:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.UpdatePost(URL, PostID, Text, , Files, Title);
|
|
|
|
|
2024-09-17 15:57:44 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_Domain"];
|
|
|
|
Token = FunctionParameters["Bitrix24_Token"];
|
|
|
|
PostID = FunctionParameters["Bitrix24_HookPostID"];
|
2024-08-13 14:04:54 +00:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.UpdatePost(URL, PostID, Text, , Files, Title, Token);
|