cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Wmorrill
Engaged Sweeper II
What I am trying to do is create a report that shows all tickets that have attachments added to the ticket.
The ability to differentiate between file types would be a plus but is not required.

Can anyone help or guide me on this?

Wayne
1 ACCEPTED SOLUTION
Nick_VDB
Champion Sweeper III
Instructions for adding this report to your Lansweeper installation can be found here. If you are interested in building or modifying reports, we do recommend:
  • Reviewing some SQL tutorials, as the Lansweeper report builder is a standard SQL editor. If you know SQL, you know how to build Lansweeper reports as well. This seems like a good tutorial.
  • Making use of our database dictionary, which explains in great detail what each database table and field stores. More information on the dictionary can be found here.
Select Top 1000000 htblticket.ticketid As ID,
htblticket.subject,
htblticket.date,
htblattachements.filename,
htblattachements.mediatype,
htblattachements.contentid
From htblticket
Inner Join htblnotes On htblticket.ticketid = htblnotes.ticketid
Inner Join htblattachements On htblnotes.noteid = htblattachements.noteid
Order By ID

View solution in original post

2 REPLIES 2
Wmorrill
Engaged Sweeper II
Many Many thanks for the assistance! I have been trying to learn the nuances of SQL report as time allows. I just haven't had that "click" of comprehension where it all makes sense. I'll keep plugging at it.
Again, many thanks for helping me with a quick resolution!

Wayne
Nick_VDB
Champion Sweeper III
Instructions for adding this report to your Lansweeper installation can be found here. If you are interested in building or modifying reports, we do recommend:
  • Reviewing some SQL tutorials, as the Lansweeper report builder is a standard SQL editor. If you know SQL, you know how to build Lansweeper reports as well. This seems like a good tutorial.
  • Making use of our database dictionary, which explains in great detail what each database table and field stores. More information on the dictionary can be found here.
Select Top 1000000 htblticket.ticketid As ID,
htblticket.subject,
htblticket.date,
htblattachements.filename,
htblattachements.mediatype,
htblattachements.contentid
From htblticket
Inner Join htblnotes On htblticket.ticketid = htblnotes.ticketid
Inner Join htblattachements On htblnotes.noteid = htblattachements.noteid
Order By ID