Makes a request to a server using HTTP/HTTPS and passes the result to the database. The component is mostly used for lightweight integrations, for example periodically fetching a CSV file from a web server.
Uses proxy settings defined in application variables PROXY and PROXYBYPASSLOCAL to make the request.
The component requires that any text it downloads is encoded in either UTF-8 or ASCII.
SQL-statement that retrieves the url, method and parameters for the request.
Parameter names and values are escaped: non alphanumeric characters are replaced by %HH (two hex digits ASCII code). Not efficient for large quantities of non alphanumeric data.
Parameters with Filename are not allowed.
|multipart/form-data||Accepts text data, binary data and files.|
|GET||Performs an HTTP GET request. Parameters are supplied via the query string.|
|POST||Performs an HTTP POST request. Parameters are supplied as form data (mime-type: multipart/form-data)|
SQL statement that passes the data retrieved from the server to the database.
If the Content-Type of the data received from the server is a text type (any type that starts with "text/", for example text/plain, text/csv, text/html) then the response will be passed through the @TextResponse parameter. Otherwise it will be passed through the @ImageResponse parameter.
Allows you to validate the parameters supplied by the user before any other SQL is run in the component. This call is only made if the component has visible parameters, the SQL is a stored procedure, and 'Validate parameters' is checked.
Use this call to restrict which entries a user is allowed to view and edit, and to log which entries a user views.
Access to a menu item is normally controlled through functions and roles alone but some entities need more fine grained control. For example, a user may have access to the View Member menu item for normal members but not for members with a protected identity.
The menu items a user visits are always logged (in ADMINLogMenuItem) but for sensitive data you may need to log exactly what entries are viewed. Do the logging in this call as the common ways of viewing data (grid and InfoSQL) are not allowed to modify the database.
If you bind a scalar function instead of a stored procedure to this call then its name must end with '_GrantAccess'.
Downloads a file and saves it to the database.
CREATE OR ALTER PROCEDURE dbo.FetchOpenIdConfiguration @Request bit = 0, @ContentType varchar(1000) = NULL, @ImageResponse varbinary(max) = NULL AS BEGIN IF @Request = 1 BEGIN SELECT 'https://login.microsoftonline.com/common/.well-known/openid-configuration' AS Url; RETURN; END; IF @ImageResponse IS NOT NULL BEGIN INSERT dbo.Download (FileData, FileContentType) VALUES (@ImageResponse, @ContentType); RETURN; END; END;