Get Analytics Notifications

Return a list of analytics notifications using a GET request.

Use a GET request on the Analytics Notification List resource to return a list of analytics notifications.

Example Usage

/services/data/v38.0/analytics/notifications?source=lightningReportSubscribe

Parameter Description
source Required for GET calls. Specifies what type of analytics notification to return. Valid values are:<ul><li>lightningDashboardSubscribe — dashboard subscriptions</li><li>lightningReportSubscribe — report subscriptions</li><li>waveNotification — Analytics notifications</li></ul>
ownerId Optional for GET calls. Allows users with Manage Analytics Notifications permission to get notifications for another user with the specified ownerId.
recordId Optional. Return notifications for a single record. Valid values are:<ul><li>reportId— Unique report ID</li><li>lensId— Unique Analytics lens ID</li></ul>

Example Response Body

[ {
  "active" : true,
  "createdDate" : "2016-08-08T04:14:12Z",
  "deactivateOnTrigger" : false,
  "id" : "0AuR00000004CYpKAM",
  "lastModifiedDate" : "2016-08-08T04:14:12Z",
  "name" : "Notification1",
  "recordId" : "00OR0000000P7EgMAK",
  "schedule" : {
    "details" : {
      "time" : 3
    },
    "frequency" : "daily"
  },
  "source" : "lightningReportSubscribe",
  "thresholds" : [ {
    "actions" : [ {
      "configuration" : {
        "recipients" : [ ]
      },
      "type" : "sendEmail"
    } ],
    "conditions" : null,
    "type" : "always"
  } ]
}, {
  "active" : true,
  "createdDate" : "2016-08-10T22:22:17Z",
  "deactivateOnTrigger" : false,
  "id" : "0AuR000000000KSKAY",
  "lastModifiedDate" : "2016-08-11T23:16:01Z",
  "name" : "Notification2",
  "recordId" : "00OR0000000PCHYMA4",
  "schedule" : {
    "details" : {
      "daysOfMonth" : [ 1, 2, 4 ],
      "time" : 22
    },
    "frequency" : "monthly",
    "frequencyType" : "specific"
  },
  "source" : "lightningReportSubscribe",
  "thresholds" : [ {
    "actions" : [ {
      "configuration" : {
        "recipients" : [ ]
      },
      "type" : "sendEmail"
    } ],
    "conditions" : null,
    "type" : "always"
  } ]
}, {
  "active" : true,
  "createdDate" : "2016-08-12T04:01:50Z",
  "deactivateOnTrigger" : false,
  "id" : "0AuR000000000KcKAI",
  "lastModifiedDate" : "2016-08-12T04:16:34Z",
  "name" : "Notification3",
  "recordId" : "00OR0000000PBXEMA4",
  "schedule" : {
    "details" : {
      "dayInWeek" : "mon",
      "time" : 22,
      "weekInMonth" : "third"
    },
    "frequency" : "monthly",
    "frequencyType" : "relative"
  },
  "source" : "lightningReportSubscribe",
  "thresholds" : [ {
    "actions" : [ {
      "configuration" : {
        "recipients" : [ ]
      },
      "type" : "sendEmail"
    } ],
    "conditions" : null,
    "type" : "always"
  } ]
} ]