Menu

Export FunctionalCI together with asset number and contact

Jops
2018-09-26
2018-10-29
  • Jops

    Jops - 2018-09-26

    Hey,

    I have to export some data as PDF file. The information I need is:

    • Name of the Ci
    • Asset number
    • serialnumber
    • name of contact linked to the ci

    Can someone help me to figure out the query?

     
  • btmcclure

    btmcclure - 2018-10-29

    I don't think you are going to get this via OQL and I'm not sure you would be able to get it as a PDF because of two things. First, FunctionalCI doesn't include a field for Asset and serialnumber by default, you would need to pull back info from a sub class. Second, the contact connection is a one to many using a linking table so you wouldn't get that in your standard grid. If you have access to the MySQL database you can definitely run a standard T-SQL query to get this info then export it as a csv. An example for a Server finalclass would be "SELECT s.name,s.asset_number,s.serialnumber,c.friendlyname from view_Server AS s JOIN lnkcontacttofunctionalci AS l ON l.functionalci_id = s.id JOIN view_contact AS c ON l.contact_id = c.id;"

     

Log in to post a comment.

MongoDB Logo MongoDB