Queries the history of notifications sent to this participant.
MyDataHelps.queryNotifications(queryParameters)
Filters notifications to those sent before this date.
Filters notifications to those sent after this date.
Name of the configured notification.
Type of notification. If provided, must be one of “Sms”, “Push”, or “Email”.
Describes whether the notification was sent. Must be one of:
How many entries to include in each page of results. Default and maximum is 100.
Each page of results will return a nextPageID
if there are additional pages that can be queried. Supply that to pageID
to query the next page. When excluded, retrieves the first page.
Resolves to a result
object containing a page of notifications.
A list of notifications filtered by the query parameters.
Identifier for this notification.
Internal ID for the participant that was sent this notification.
Identifier for the notification configuration.
If the notification was sent, the date at which the notification was sent.
Describes whether the notification was sent. Will be one of:
Type of notification. Will be one of “Sms”, “Push”, or “Email”.
An object whose fields depend on the type of the notification.
Sms and Push only. The content of the notification.
Push only. The title of the notification.
Email only. The subject line of the email. The content of the email is not available.
An ID to be used with subsequent queries. Results from queries using this ID as the pageID
parameter will show the next page of results. This field is null if there isn’t a next page.
var queryParams = {
sentAfter: "2021-02-15"
};
MyDataHelps.queryNotifications(queryParameters)
.then( function(result) {
console.log(result);
} );
var queryParams = {
sentAfter: "2021-02-15"
};
MyDataHelps.queryNotifications(queryParameters)
.then( function(result) {
console.log(result);
} );
{
"notifications": [
{
"id": "d786f2a6-6c71-eb11-aa81-f8e4e3480e0d",
"participantID": "82320a5b-4d6a-eb11-aa7f-f8e4e3480e0d",
"identifier": "Weekly Update - Late Notification",
"sentDate": "2021-02-17T22:08:31.637+00:00",
"statusCode": "Succeeded",
"type": "Email",
"content": {
"subject": "Weekly Update due date approaching"
}
}
],
"nextPageID": null
}
{
"notifications": [
{
"id": "d786f2a6-6c71-eb11-aa81-f8e4e3480e0d",
"participantID": "82320a5b-4d6a-eb11-aa7f-f8e4e3480e0d",
"identifier": "Weekly Update - Late Notification",
"sentDate": "2021-02-17T22:08:31.637+00:00",
"statusCode": "Succeeded",
"type": "Email",
"content": {
"subject": "Weekly Update due date approaching"
}
}
],
"nextPageID": null
}