How to diffrentiate between signature and inline attachment in ticket
Hey folks !
I have made a webpanel in project and sale listing attachments on a ticket using CRMScript.
As I havent found a good method in seperating images from signature vs those that are not signature, it will list up all the unneccessary attachments.
Does anyone have a workaround to this ?
Alle Antworten (5)
Hi Ummair,
Not sure exact method you are using to find these attachments, but there is a colum(inline_image) on ticket_attachment table to indicate if this attachment is inline. Or if you you use Netserver classes, could perhaps to something like this;NSTicketAgent agent;
Integer ticketEntityId = 123;
NSAttachmentEntity[] results = agent.GetTicketAttachments(ticketEntityId);
for(Integer i = 0; i < results.length();i++){
if(!results[i].GetInlineImage())
//This is not an inline image
}
Hi Ummair,
As Michel said, there is no available method to recognize signature images. What you could do is filter the attachment overview based on the size of the file -> for example: do not show attachments smaller than 10 kb (or make a filter to show/hide). Also, sometimes it was useful (in our case) to let the user qualify attachments (and store this qualification in an extratable) > the qualification can then be used to recognize attachments more easily.
Good luck finding your best solution! :)