Custom fields
This topic describes how to add custom fields using the Rebilly UI. To add custom fields using the Rebilly API, see the Custom fields operations.
Use custom fields to extend a resource scheme to include custom data that is not provided as a common field. Depending on the resource on which the custom field is added, it will be available in all related forms and also as a filter in data table segments.
Example: A custom field called 'Preferred contact method' is added to the customer resource. It has two allowed values, which are 'email' and 'phone'. When new customers are added, they will be prompted to provide this information. Alternatively, if the customer is manually added, a field for this value is provided. The custom field is also provided as a filter in data tables.
Create custom fields
Use this process to create custom fields.
- In the left navigation bar, press Settings .
- In the Management section, press Custom fields.
- Press Create custom field.
- In the Resource dropdown, select the resource you want to associate with the custom field.
For example, if you want to add a preferred contact method field to customers, select the 'Customers' resource. - In the Type dropdown, select the format of the data.
For example, if you want to store preferred contact information that contains alphanumeric data, select 'String'. - In the Label field, enter a name for the custom field.
- In the Description field, enter a description for the custom field.
- Optionally, to restrict the available input values, select the Apply value restrictions checkbox and enter the allowed values.
For example, for the preferred contact method, you may want to add 'Email' or 'Phone'.
Note: Restrictions are only available forarray
andstring
data types. - Use the Preview section to visualize how the custom field is displayed.
- Optionally, to set a default value, in the Default value field, enter a value.
- Optionally, to make the custom field required, select the Required checkbox.
- Press Save custom field.
Edit custom fields
This process describes how to edit custom fields.
- In the left navigation bar, press Settings .
- In the Management section, press Custom fields.
- Select a custom field.
- Edit the custom field, then press Save custom field.
Filter data table content by custom fields
This process describes how to filter data table content based on a custom field.
To filter data table content by a custom field, the custom field must be on the same resource. For example, if you want to filter 'customers' data table content by a custom field, the custom field must be on the customer resource.
Create a custom field
- In the left navigation bar, press Settings .
- In the Management section, press Custom fields.
- Press Create custom field.
- In the Resource dropdown, select the resource you want to associate with the custom field.
For example, if you want to add a preferred contact method field to customers, select the 'Customers' resource. - In the Type dropdown, select the format of the data.
For example, if you want to store preferred contact information that contains alphanumeric data, select 'String'. - In the Label field, enter a name for the custom field.
- In the Description field, enter a description for the custom field.
- Optionally, to restrict the available input values, select the Apply value restrictions checkbox and enter the allowed values.
For example, for the preferred contact method, you may want to add 'Email' or 'Phone'.
Note: Restrictions are only available forarray
andstring
data types. - Use the Preview section to visualize how the custom field is displayed.
- Optionally, to set a default value, in the Default value field, enter a value.
- Optionally, to make the custom field required, select the Required checkbox.
- Press Save custom field.
Apply the custom filter to data table content
- In the left navigation bar, press Data tables, depending on the resource in which you created the custom field, select Customer, Payments, Billing, Logs, or KYC & AML.
- In the top right of the table, press Filters .
- Press Add filter.
- In the Filter dropdown, type
custom fields
, then select your custom field. - In the Operation dropdown, select a condition.
- In the Value field, enter or select values.
For example to filter by customers aged between 30 and 40, using the custom fieldAge
, select theis between
operation, then in the Value fields, specify the range. - Press Apply filter.
- Select an option:
- To save the filtered data to the active segment: Press Save.
- To create a new segment based on the filtered data: Press Save segment as, enter a name for the new segment, then press Save.
A segment is a filtered view of the data set. Depending on where the filtered view is created, new segments are displayed in Customer, Payments, Billing, or Logs. For more information, see Segments.
Use custom fields as conditions in automations
This process describes how to use a custom field as a condition on an automation. Conditions are used to specify additional criteria on when an automation is triggered, and also to target specific resources.
Create a custom field
- In the left navigation bar, press Settings .
- In the Management section, press Custom fields.
- Press Create custom field.
- In the Resource dropdown, select the resource you want to associate with the custom field.
For example, if you want to add a preferred contact method field to customers, select the 'Customers' resource. - In the Type dropdown, select the format of the data.
For example, if you want to store preferred contact information that contains alphanumeric data, select 'String'. - In the Label field, enter a name for the custom field.
- In the Description field, enter a description for the custom field.
- Optionally, to restrict the available input values, select the Apply value restrictions checkbox and enter the allowed values.
For example, for the preferred contact method, you may want to add 'Email' or 'Phone'.
Note: Restrictions are only available forarray
andstring
data types. - Use the Preview section to visualize how the custom field is displayed.
- Optionally, to set a default value, in the Default value field, enter a value.
- Optionally, to make the custom field required, select the Required checkbox.
- Press Save custom field.
Create an automation on an event
This step describes how to create an automation that is triggered when a specific event occurs.
- In the left navigation bar, press Automations .
- In the Rules engine section, press Rules engine.
- Press Core events or Billing events.
- Select an event.
- Press Rule set, then press Create rule.
- In the Name field, enter a unique name to help differentiate between multiple rules.
- Optionally, to add labels that help you identify the rule: In the Labels field, add one or more labels.
- Optionally, to not stop further processing after this rule is executed: clear the Stop further processing checkbox.
Configure a condition using a custom field
This step describes how to configure a condition that is based on a custom field.
- In the Conditions section, clear the No conditions checkbox.
- In the Select filter field, select a custom field based condition that you want to apply.
To view all available custom fields that are available on the event you have selected, in the Select filter field, typecustom fields
. Then select the custom field, the operation, and the value. Examples:- 'Transaction > Customer > Custom fields > 'Field name''.
- 'Payment card > Customer > Custom fields > 'Field name''.
- 'Invoice > Customer > Custom fields > 'Field name''.
- In the Actions section, press Add action.
- Specify the action that you want to occur when the condition is met.
- Press Save rule.