transform

GETALL,CFO/GetFormLookupList

IN THIS PAGE

Arguments

formIdCharacter

Form definition id.

fieldNameCharacter

Field name of the List field.

Returns

resultJSON Object

Returns an object with these properties:

errorboolean

true if there was an error

errorTextstring
resultobject
list

The array of choices for the list

Description

Get the list of choices for a List field in a Form definition.

CURL 

CURL --insecure -H "apikey:Your_api_key" -H "accept: application/json"  "https://transform.alphasoftware.com/transformAPIVersion1.a5svc/GetFormLookupList?formId=value_of_formId&fieldName=value_of_fieldName"

Node 

var https = require('https');
var options = {
  protocol: "https:",
  hostname: "transform.alphasoftware.com",
  path: "/transformAPIVersion1.a5svc/GetFormLookupList?formId=value%5fof%5fformId&fieldName=value%5fof%5ffieldName",
  headers: {apikey: "Your_api_key"}
};

https.get(options, (resp) => {
  let data = '';
  resp.on('data', (chunk) => {data += chunk;});
  resp.on('end', () => {console.log(data);});
}).on("error", (err) => {console.log("Error: " + err.message);});

Xbasic 

dim apikey as c = "Your_api_key"
dim postdata as c 
dim url as c = "/GetFormLookupList?formId=value%5fof%5fformId&fieldName=value%5fof%5ffieldName"
dim pr as p
pr = a5dialogHelper_transformAPIQuery(url,postdata,apikey)
if pr.error = .f. then
	dim result as c 
	result = pr.result
else
	dim errorText as c 
	errorText = pr.errorText
end if