1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-25 21:39:21 +02:00
OpenIntegrations/docs/en/examples/Notion/CreatePageInDatabase.txt
Vitaly the Alpaca (bot) 36a4920eb7 Main build (Jenkins)
2025-01-11 21:13:24 +03:00

22 lines
948 B
Plaintext
Vendored

Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Base = "17882aa7-fc4e-814d-8030-c6a5a062e774";
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);