When defining a user-defined action, you can expose it as a function that can be used in your application module expressions. In this context the action will also be recognized as a User Function and will also be available for use, like any built-in function, in the Scope tree of the Expression editor.

How to Define a User Function

  1. In the eSpace tree, under the Logic layer, select the user-defined action and set Function to Yes to;
  2. The action is now available in the folder User Functions of the expression editor.

You cannot define a user-defined action as a function when:

  1. The action has no output parameters

  2. The action has more than one output parameter

  3. The action has the same name as a built-in function

In a case where name clashing occurs, Service Studio automatically renames your action. Learn About elements naming.

If, at design time, you try to perform a change that would cause violations 1 or 2, Service Studio prevents it, but allows you to automatically change the action to meet the requirements to be a function:

Be aware that the above automations may invalidate your eSpace in a case where you're using the User Function.  

See Also

Use User Functions | Action Properties | Expression Editor