This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to send the values from history table for an asset in an email

Dears,

I need to send an email to my customer for verification of some important columns.Example as below.

I have already enabled the history on the needed columns. which ever column is updated with that transactions need to highlight and send as an email.

Please let me know.

  CurrentValue Previous Value
HostName ABC  
Application Owner Indra Kumar
Appliaction Name CTS CBS
Criticality Critical  

Thank you.

Regards,

Indra 

Parents
  • 0

    Please review the History table structure via Designer application.  Since the "link" to this table from the context table is in reverse (ie. n-1), use of the 'ID of link Referenced object (lHistObjId)' with the context table primary key will help identify which history table records to pull into the email notification.  The context table elements with "Keep history" attribute enabled can be identified by the respective SQLName stored under 'Field or link (Field)' of history table.

Reply
  • 0

    Please review the History table structure via Designer application.  Since the "link" to this table from the context table is in reverse (ie. n-1), use of the 'ID of link Referenced object (lHistObjId)' with the context table primary key will help identify which history table records to pull into the email notification.  The context table elements with "Keep history" attribute enabled can be identified by the respective SQLName stored under 'Field or link (Field)' of history table.

Children
  • 0 in reply to 

    Please let me know how to write the same query inside the messaging, for example if i write [Computer.tcpiphostname] it will get the value of host name. if i write [History.PreviousVal] it will give the previous val of the last updated column in the table for this record, but i need to show all the columns. could you share any example if you have.

    Thank you.

    Regards,

    Indra