tmcclure

Retrieving All Details of a Notification

Discussion created by tmcclure on Jan 23, 2013
Latest reply on Jan 31, 2013 by tmcclure

This is a two-part question...

 

 

 

PINotificationViewer displays the following columns:

  • Start Time
  • End Time
  • Duration
  • State
  • Priority
  • Acknowledged
  • Action
  • Contact
  • Contact Method
  • Comment 
.
.
.
1.  I am able to extract the data from most of these columns using code similar to this:
foreach (ANInstance instance in instances.Instances)
{
     string startTime = instance.StartTime.ToString():
}
But I have yet to discover how to extract the data from the "Action" column.  Any ideas?
.
.
.
2. I am able to extract the details relating to the contacts by using the following code:

foreach (ANContactEvent contactEvent in instance.ContactEvents)
{
     try
     {
          string contactName = AFNotificationContactTemplate.FindNotificationContactTemplate(_afServer, contactEvent.ContactID).Name;
     }

 

Any ideas how to extract the data from the "Comment" column?

Outcomes