1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-02 22:05:37 +02:00

18 lines
624 B
Plaintext
Raw Normal View History

 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);
URL = FunctionParameters["Bitrix24_Domain"];
Token = FunctionParameters["Bitrix24_Token"];
PostID = FunctionParameters["Bitrix24_HookPostID"];
Result = OPI_Bitrix24.UpdatePost(URL, PostID, Text, , Files, Title, Token);