GetAnvaigoUser

Record GetAnvaigoUser();

Returns the record of ACF Anvaigo User table that is set to current Anvaigo user.

Please add library LIB_USER to your Anvaigo Script to get access to this function.

Example:
local AnvaigoUser = GetAnvaigoUser();
if (AnvaigoUser:GETVALUE('Relation Type') == 2) then
   MESSAGE('My relation code is Customer No. ' .. 
      AnvaigoUser:GETVALUE('Relation Code'));
end;

This example shows how to get the relation code of the current Anvaigo user.