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.
Use custom fields as conditions in email notifications
This process describes how to use a custom field as a condition in an email notification. Conditions specify additional criteria for when an email is sent. For example, you can create an email notification that is sent to customers who sign up for a subscription and have selected the custom field value 'Opt-in for marketing emails'.
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 email notification with custom field as a condition
- In the left navigation bar, press Automations .
- In the Data and alerts section, press Email notifications.
- In the Customer notifications section, press Core events or Billing events.
- Select an event.
- In the top right of the page, press Create email notification.
- In the Name field, enter a unique name to help differentiate between multiple notifications.
- Optionally, to add labels that help you identify the notification: In the Labels field, add one or more labels.
- In the Conditions section, clear the No conditions checkbox.
- In the Select filter field, type
custom fields
, then select the custom field. - Specify the operation and value for the custom field.
- In the Emails section, press Add email.
- In the Title field, enter a meaningful title.
- In the From field, select your email address. If your email address is not listed, press Add email address.
- In the To field, add a placeholder or an email address.
- Optionally, to stay informed on all emails, press Add BCC and add your email or a support email.
- In the Subject field, enter a subject or placeholder.
- In the Email content field, compose your email. Press Add placeholders to add dynamic event-based content. For example, a placeholder to fetch the email address of a customer is
{{subscription.customer.email}}
. The email can be in plain text or HTML. - Press Save notification.