1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-23 21:29:38 +02:00
OpenIntegrations/docs/en/examples/Notion/CreatePageInDatabase.txt
Vitaly the Alpaca (bot) e5f231d725 Main build (Jenkins)
2025-02-18 14:08:09 +03:00

22 lines
948 B
Plaintext
Vendored

Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Base = "19e82aa7-fc4e-8193-bf48-ec97028f488a";
Image_ = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary Data or Path to file
Image = New Map;
Image.Insert("Logo", Image_);
Properties = New Map;
Properties.Insert("Name" , "LLC Vector");
Properties.Insert("Description" , "OurFirstClient");
Properties.Insert("Number" , 1);
Properties.Insert("Status" , "Regular");
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);