transform

POSTALL,EOS/SetOnSubmitEvent

IN THIS PAGE

Arguments

onsubmitjsonCharacter

The definition for the onSubmit event (JSON)

Returns

resultJSON Object

Returns an object with these properties:

errorboolean

true if there was an error

errorTextstring
result.rowsUpdatednumber of rows in the Account table that were updated.

Description

Sets the onSubmit event definition for a TransForm account. The account is the account associated with the API key.

CURL 

CURL --insecure -H "apikey:Your_api_key" -H "content-type: application/json" -H "accept: application/json" -d "{"""onsubmitjson""":value_of_onsubmitJson}" "https://transform.alphasoftware.com/transformAPIVersion1.a5svc/SetOnSubmitEvent"

Node 

var request = require('request')
var path = 'https://transform.alphasoftware.com/transformAPIVersion1.a5svc/SetOnSubmitEvent';
var data = {"onsubmitjson": "value_of_onsubmitJson"};
var dataJSON = JSON.stringify(data)
request.post(
	{
		headers: {apikey: "Your_api_key"},   
		url: path, 
		form: dataJSON}, 
		function(err,httpResponse,body){
			if(err) console.log(err)
			console.log(body)
	}
)

Xbasic 

dim apikey as c = "Your_api_key"
dim postdata as c
postdata = <<%txt%
{
    "onsubmitjson": "value_of_onsubmitJson"
}

%txt%

dim url as c = "/SetOnSubmitEvent"
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