Notifications can be added to an Action through the Add new rule dropdown menu. Learn more about how to add a notification.
Configuring a notification requires specification of recipients and content. The following sections provide more detail on these options.
Configuring the Recipients option of a notification allows you to specify the set of Foundry users who will receive a notification when the Action runs. Notifications will be sent to each recipient individually. Adding users as CC (carbon copy) recipients to email notifications is not supported.
There are several supported ways of specifying recipients:
Static: In the configuration, you may select a set of users or groups who will always be notified when the Action runs.
From a parameter: If you have a parameter to the Action that is a Foundry user or group ID, you may specify this as your recipient for a notification.
From an attribute of an object parameter: If you have an object parameter to the Action, and one of the properties of that object contains a Foundry user or group ID, you may specify that property of a parameter as the recipient. This is also possible for lists of Foundry user and group IDs.
From a Function: If your use case is not covered by the above options, you may write a custom Function which takes in Action parameters and will return the list of users or groups who should be notified. Learn more about how to write a Function that returns a list of users or groups.
Examples of use cases for recipients based on a Function include:
assignee
specified from an attribute of an object parameter and also always notifying a static set of additional recipients.Recipients may change their preferences for how notifications are delivered to them. For example, one user may choose to only have notifications delivered in their web browser, while another user may choose to receive both in-platform toasts and emails. If a user has Action notifications turned off in their personal preferences, they will not be notified. However, they may still view their notifications when logged into Foundry by going to "Notifications" and then "See All" in the Workspace.
There are a number of options for customizing the content of notifications. Content may be configured via Template or provided via a custom Function. Selecting template content will allow you to configure the full content directly in the configuration dialog. Function content will require you to have a published Function, which returns the appropriate notification type.
Triple handlebars may be used to reference parameters and user attributes in the Subject, Body, and Link mentioned above. When editing a section, clicking on one of the available parameters will auto-generate the correct handlebar reference for that parameter or user attribute.
Notification
object with the appropriate properties specifying each section of your custom content. You may need to use a Function if any of the following applies:
More information on the Notification return type can be found in the Functions documentation.
Any Ontology data used for generating notification content will reflect the state of the Ontology before edits of the current Action are applied. To give notification recipients access to the latest state of specific objects, it is possible to embed links to objects referenced via object parameters, or links to newly created objects (if those objects are created via a "create object" rule and not via a function) in the notification.
This is an example configuration for a notification.
Notification
object).{{{}}}
syntax to reference that parameter.Keep in mind that these maximum content lengths are validated and truncated when notifications are rendered. This means that if the rendered content is dynamic (for example, if the notification content includes object data), any content longer than the allowed maximum lengths will be truncated and indicated by trailing ...
.
If "Strict Redaction" or "Group Redaction" on outbound email notifications is enabled for your Foundry instance, custom notification content will not be rendered. Instead, users will receive the generic message shown below. Selecting "View" will direct them into Foundry where they can view the full notification content. Learn more about email content redaction in Foundry.
You must reference the primary key of a new object when linking it, since an object RID is not generated by time the notification is rendered.
Example: You have an Action that creates a new task
object, and will be generating a unique ID when creating the task. Inside your Action notification you render a link to the newly created object using the parameter options provided by Object Explorer.
https://<your-foundry-instance>.com/workspace/module/view/latest/<module-rid>
/module/view/latest/<module-rid>