/
Database view containing pending notifications in service notifications

Database view containing pending notifications in service notifications





Description of Issue

Need table or view that contains pending notification records as seen in Service Notification program.



Context
  • SSRS Reports

  • Tyler Reporting Services Views

  • Enterprise ERP version 2019.1

  • Derived

  • Service Notification

  • Pending Notifications



Cause

View database columns in Service notification shows all fields are derived.



Resolution

Pending notification records are available in two tables:

1. EnitityNotifications.
2. EntityNotificationBacklog

All records from EntityNotifications will have Status of 'Pending Initial Attempt' and all records from EntityNotificationBacklog will have Status of 'Failed Previously'

The Action is already encoded in the Entity Payload string. The following example query fetches all records as one result set.

SELECT EntityType,
CAST(EntityNotificationBacklog.EntityPayload AS VARCHAR(800)) as EntityPayload,
SubscriberCode,
'Failed Previously' as EntityStatus
FROM dbo.EntityNotificationBacklog

UNION ALL

SELECT EntityType,
CAST(EntityNotifications.EntityPayload AS VARCHAR(800)) as EntityPayload,
' ' as SubscriberCode,
'Pending Initial Attempt' as EntityStatus
FROM dbo.EntityNotifications



Additional Information

Since the query uses table, user(s) should have table access granted through db_datareader role to fetch data. 











Related content

Database view containing employee status in Employee Master
Database view containing employee status in Employee Master
More like this
Alternate views for pr_audit_history in Munis 2018.1 and later versions
Alternate views for pr_audit_history in Munis 2018.1 and later versions
More like this
Database view containing batches and the name of clerks who entered and posted them
Database view containing batches and the name of clerks who entered and posted them
More like this
Database view containing comments for a work order
Database view containing comments for a work order
More like this
Database view containing miscellaneous description in Receipt Inquiry
Database view containing miscellaneous description in Receipt Inquiry
More like this
Database view for comment field in application plan review
Database view for comment field in application plan review
More like this