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

21 lines
887 B
Plaintext
Raw Normal View History

2025-06-29 14:35:33 +03:00
 Token = "secret_9RsfMrRMqZwqp0Zl0B...";
2025-07-28 20:20:57 +03:00
Base = "23a82aa7-fc4e-81a6-98d3-eff6fee89d49";
2025-06-29 14:35:33 +03:00
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;
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);