2025-10-20 19:41:52 +03:00
|
|
|
Token = FunctionParameters["Notion_Token"];
|
|
|
|
|
Base = FunctionParameters["Notion_Base"];
|
|
|
|
|
Image_ = FunctionParameters["Picture"]; // URL, Binary Data or File path
|
2024-10-01 20:59:19 +03:00
|
|
|
|
|
|
|
|
Image = New Map;
|
|
|
|
|
Image.Insert("Logo", Image_);
|
|
|
|
|
|
|
|
|
|
Properties = New Map;
|
2025-03-06 20:58:59 +03:00
|
|
|
Properties.Insert("Name" , "LLC Vector");
|
|
|
|
|
Properties.Insert("Description" , "OurFirstClient");
|
|
|
|
|
Properties.Insert("Number" , 1);
|
|
|
|
|
Properties.Insert("CreationDate", OPI_Tools.GetCurrentDate());
|
|
|
|
|
Properties.Insert("Image" , Image);
|
|
|
|
|
Properties.Insert("Active" , True);
|
|
|
|
|
Properties.Insert("Website" , "https://vector.ru");
|
|
|
|
|
Properties.Insert("Email" , "mail@vector.ru");
|
|
|
|
|
Properties.Insert("Phone" , "88005553535");
|
|
|
|
|
Properties.Insert("Status" , "New");
|
2024-10-01 20:59:19 +03:00
|
|
|
|
|
|
|
|
Result = OPI_Notion.CreatePageInDatabase(Token, Base, Properties);
|