1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/Notion/CreatePageInDatabase.txt

21 lines
859 B
Plaintext
Raw Normal View History

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
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");
Result = OPI_Notion.CreatePageInDatabase(Token, Base, Properties);