Previous Topic: EndpointsNext Topic: Obscured Returned Values


Custom Function Program Exits

A custom function program exit is invoked from an account template rule expression. Custom function program exits share the following characteristics:

For example, if the global user for the account being created or updated has the following attribute settings:

eTCustomField01:  { value1a, value1b }      (that is, two values assigned)
eTCustomField02:  value2

The %*$FuncName(%*UCU01%, %UCU02%)% rule expression is evaluated.

The input XML passes all values of eTCustomField01 and the value of eTCustomField02 as follows:

<eTExitInvoke eTExitType=CUSTOM_FUNCTION>
   <eTFunction>
      <eTFuncParam1>value1a</eTFuncParam1>
      <eTFuncParam1>value1b</eTFuncParam1>
      <eTFuncParam2>value2</eTFuncParam2>
   </eTFunction>
   <Authentication>
      <Type>GLOBAL_USER</Type>
      <User>{the DN of the global user}</User>
      <Password>{the password of the global user}</Password}
   </Authentication>
</eTExitInvoke>

The output from the program exit can indicate an error (as with any other program exit) so that the creation or update of the account is not attempted, or can contain a single- or multi-valued output parameter. For example, a program exit could return the following XML block to indicate two values (ReturnValue1 and ReturnValue2) to set for the corresponding account attribute:

<eTExitReturn>
   <eTExitReturnCategory>SUCCESS</eTExitReturnCategory>
   <eTExitReturnNative>0</eTExitReturnNative>
   <eTExitContinue>TRUE</eTExitContinue>
   <eTExitCustom>
      <eTFuncReturn>ReturnValue1</eTFuncReturn>
      <eTFuncReturn>ReturnValue2</eTFuncReturn>
   </eTExitCustom>
</eTExitReturn>

The function rule expression controls the number of values to set as follows: