Member Functions
Overview
Member Functions allow you to define repeatable, reusable calculations or expressions using Groovy. The Member Function will output a result, which can be used in other EDP assets, such as queries or rules, or used to personalize message content.
A Member Function is conceptually similar to a Calculated Attribute, in that it uses a calculation to derive an output value. The key difference between a Member Function and a Calculated Attribute is that the Calculated Attribute resides on the Person Profile, and the resulting output value is saved as part of the Profile. Conversely, a Member Function is not saved on the Profile, and its output value is not permanently stored anywhere.
Access
To access the Member Functions screen, select Definitions from the Main Navigation Menu, then select Helpers > Member Functions from the Sub-Category menu.
Features
The Member Functions screen provides the following features:
Click hereClick here
Search
The search feature allows you to search for a specified text string anywhere within the Member Function's display name or internal name.
-
Optionally, in the search field near the top of Member Functions screen, enter the desired text string.
-
Press Enter, or click the search button (magnifying glass icon).
-
The Member Functions screen is refreshed to show only the Member Functions that meet your search criteria.
-
To remove all search criteria, click the remove button ("X" icon).
Sort
The "Sort" drop-down menu allows you to sort the Member Functions on a variety of different fields. To sort the list of Member Functions, select the desired sort option from this menu.
-
Display Name (default)
-
Created Date
-
Updated Date
Navigation
Once you've found the desired Member Function, you can navigate to the following other screens:
|
Click hereClick here
To create a new Member Function:
-
In the "Enter Display Name" field, enter the Display Name value for the new Member Function. Please note that the name can't contain any spaces or special characters (other than underscores).
-
Click create. The "Edit Member Function" pop-up window is displayed.
-
The "Display Name" field is populated with the value you entered above; optionally edit this value.
-
The Internal Name is automatically populated based on the Display Name value. This field is uneditable by default. To edit the Internal Name, check edit internal name. A confirmation dialog box is displayed; click ok. Edit the Internal Name value.
-
In the "Description" field, optionally enter a description of the Member Function.
-
Optionally, to assign this Member Function to a Category, enter the name of the Category in the "Category" field.
-
Click save.
|
Click hereClick here
To view or edit the details of a Member Function:
-
Search, sort, or filter the Member Function screen as described above.
-
Click the name of the desired Member Function.
-
The Member Function Details screen is displayed and populated with all of the information about this Member Function. See Member Function Details for more information.
|
Click hereClick here
To evaluate a Groovy expression:
-
From the "Actions" drop-down menu, select "Evaluate Expression." The "Validate Expression" pop-up window is displayed.
-
In the "Expression" field, enter the Groovy expression.
-
In the "Member" field, begin typing all or part of a Member's name (minimum of three characters). Pick the desired Member from the search results.
-
From the "Activity Type" drop-down menu, select the desired Activity type.
-
The "Activity JSON" field is displayed and populated with the API payload for this Activity type. Enter the desired values in the API payload.
-
Click evaluate.
-
The platform dispalys the results of the validation process, including whether the code is valid, and what the result is for the selected Member and Activity type.
-
When finished, click close.
|
Back to Helpers Overview
Last Updated: April 2022