Skip to main content

RequestQueryParameter

Structure

RequestQueryParameter(sParameter)

Parameters

ParameterTypeDescription
sParameterStringname of the request parameter to look up. Note that this parameter value should be in the format of decoded text. For instance, if the url included a parameter of 'MY%20PARAMETER' then it should simply be referenced here as 'MY PARAMETER'

Return value

String

Description

Use this function to return the value for a specific query parameter in the Web Packet request. Tip: to see a full slate of all these values for an actual web request, turn on 'Log All Requests' before turning on the IndySoft REST Server, then check the log of a web request in the 'History / Status' grid in IndySoftSyncOptions utility. This log will return values for all query parameters in the web packet request

Example

if RequestQueryParameter("Manufacturer") = "ACME" then
ResponseStatusCode(607)
ResponseBodyAsText("ACME request - appropriately handled")
End If