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
Vitaly the Alpaca (bot) cdef2d02ab Main build (Jenkins)
2025-10-21 21:43:05 +03:00

21 lines
887 B
Plaintext
Vendored

Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Base = "29382aa7-fc4e-81e2-a08a-c0ce0c962918";
Image_ = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Binary Data or File path
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("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);