Get Notifications
Here's the specifications and usage documentation for the "Get Notifications" activity:
Get Notifications Activity
Display Name: Get Notifications\ Description: Get AIForged notifications with various filters.
Properties
- Input
- Start Date
- Type:
DateTime
- Description: Filter notifications from this starting date.
- Type:
- End Date
- Type:
DateTime
- Description: Filter notifications up to this end date.
- Type:
- Include Read
- Type:
bool?
- Description: Include notifications that were previously marked as read.
- Type:
- To
- Type:
string
- Description: Filter by a notification's "To" property.
- Type:
- Subject
- Type:
string
- Description: Filter by a notification's "Subject" property.
- Type:
- Body
- Type:
string
- Description: Filter by a notification's "Body" property.
- Type:
- Error
- Type:
string
- Description: Filter by a notification's "Error" property.
- Type:
- Notification Type
- Type:
NotificationType?
- Description: Filter by notification type (e.g.,
NotificationType.Email
).
- Type:
- Notification Status
- Type:
NotificationStatus?
- Description: Filter by notification status (e.g.,
NotificationStatus.Created
).
- Type:
- Notification Area
- Type:
NotificationArea?
- Description: Filter by notification area (e.g.,
NotificationArea.Login
).
- Type:
- Notification Event
- Type:
NotificationEvent?
- Description: Filter by notification event (e.g.,
NotificationEvent.Create
).
- Type:
- Page No
- Type:
int?
- Description: Filter by page number (only applicable when Page Size is set).
- Type:
- Page Size
- Type:
int?
- Description: The maximum number of results to return per page (use Page No to select which page to return results for).
- Type:
- Sort By Field
- Type:
SortField?
- Description: Sort results by a specific field.
- Type:
- Sort By Direction
- Type:
SortDirection?
- Description: Sort results in a specific direction.
- Type:
- Start Date
Usage
- Setup Activity:
- Add the "Get Notifications" activity to your UiPath workflow.
- Configure the input arguments to specify the criteria for filtering notifications. This can include date ranges, inclusion of read notifications, and various attributes of the notifications such as type, status, and event.
- Execution:
- The activity executes asynchronously, retrieving notifications that match the specified filter criteria from the AIForged notification subsystem.
- It uses the configured API context to access the notification data via the notification client.
- Output:
- The activity returns an
ObservableCollection<NotificationViewModel>
, representing the list of notifications retrieved based on the specified filters.
- The activity returns an
Considerations
- Filter Criteria: Use the available filters to narrow down the notifications to those relevant to your analysis or monitoring needs.
- Date and Time Filters: Utilize the date filters to focus on notifications within a specific timeframe, improving performance and relevance of the results.
- Sorting and Pagination: Use sorting and pagination options to manage large sets of notifications efficiently.
- Permissions: Verify that the necessary permissions are in place for the user or application retrieving the notifications to prevent unauthorized actions.