The attribute plugin is not available, 2fa disabled
Inhaltsverzeichnis
4.2 Read Data with VBA
Retrieve table data via REST API.
Complete Example
Sub LoadCustomers() Dim http As Object Dim url As String Dim json As String url = "http://localhost:5000/api/v1/dsn/demo/tables/Customers?$top=10" Set http = CreateObject("MSXML2.XMLHTTP") http.Open "GET", url, False http.setRequestHeader "Accept", "application/json" http.send If http.Status = 200 Then json = http.responseText Debug.Print json Else MsgBox "Error: " & http.Status End If End Sub
With Filter
url = "http://localhost:5000/api/v1/dsn/demo/tables/Customers" & _ "?$filter=Country eq 'Germany'&$orderby=Name"
URL Encoding
Special characters in filter must be encoded:
filter = Application.EncodeURL("Country eq 'Germany'")
Zuletzt geändert: on 2026/01/29 at 11:24 PM