1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-24 05:36:29 +02:00
2024-08-13 14:35:37 +03:00

20 lines
683 B
Plaintext

Text = "New post text";
Title = "New post title";
Image1 = FunctionParameters["Picture"]; // URL, Path or Binary Data
PostID = FunctionParameters["Bitrix24_PostID"];
Files = New Map;
Files.Insert("1.png", Image1);
URL = FunctionParameters["Bitrix24_URL"];
Result = OPI_Bitrix24.UpdatePost(URL, PostID, Text, , Files, Title);
OPI_TestDataRetrieval.WriteLog(Result, "UpdatePost (wh)", "Bitrix24");
URL = FunctionParameters["Bitrix24_Domain"];
Token = FunctionParameters["Bitrix24_Token"];
PostID = FunctionParameters["Bitrix24_HookPostID"];
Result = OPI_Bitrix24.UpdatePost(URL, PostID, Text, , Files, Title, Token);