1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/examples/HTTPClient/AddDataAsRelated.txt
Vitaly the Alpaca (bot) 5ae98a4391 Main build (Jenkins)
2025-09-23 10:13:09 +03:00

17 lines
518 B
Plaintext
Vendored

URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
RandomArray = New Array;
RandomArray.Add("A");
RandomArray.Add("B");
RandomArray.Add("C");
Data = New Structure("Field1,Field2,Field3", 10, "Text", RandomArray);
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.StartMultipartBody(True, "related")
.AddDataAsRelated(Data, "application/json; charset=UTF-8") // <---
.ProcessRequest("POST")
.ReturnResponseAsJSONObject();