Skip to main content

FAILCODE

FAILCODE

The FAILCODE function returns the last failure code, for use in the FAILURE workflow service or in the TRANSFORM structure referenced in the ONFAIL option of SOAPCALL.

Example:

SPeople := SORT(Person,Person.per_first_name);
nUniques := COUNT(DEDUP(sPeople,Person.per_first_name AND
                 Person.address))
:FAILURE(Email.simpleSend(SystemsPersonnel,
SystemsPersonel.email,FAILCODE));

See Also: FAILURE, FAILMESSAGE, SOAPCALL