How to diffrentiate between signature and inline attachment in ticket

lock
push_pin
done
Besvart
5

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 ? 

7. jul. 2024 | 02:31 p.m.

Alle Svar (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
}

8. jul. 2024 | 04:57 a.m.
I think that is the problem.
Both pasted images and signature images get inline_image = 1 on ticket_attachment table ?
8. jul. 2024 | 07:46 a.m.
Just for info. I have tried to use the inline_image column.
8. jul. 2024 | 07:53 a.m.
Okey maybe I misunderstood your question, I thought you wanted to exclude inline images. But we dont have any way of differentiating between signature images and other inline images.
8. jul. 2024 | 11:32 a.m.

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! :)

9. jul. 2024 | 06:36 a.m.

Legg til svar