How to Find Work object attachments type or file extension.
Question1: How can I find the file type or extension of the attachment file? I can see the name from Property pxAttachname if I open the attachment page, but how to find the file extension or type?
The requirement is like, I have around 40000 Work object, where different type of attachments (PDF, Text, Email etc) are there, I should come with a one time utility which will retrieve those attachments and keep it as it is with it's actual file type.
For this I need to know the file type for each attachment.
pyFileMimeType property has the value set for File type when you upload a file using OOTB Upload , it can be seen on Clipboard Pagelist (Attachment List) of Work Object , check if you are using this value to set when you create an Attachment link .
Also, pyAttachMimeType , this property should hold value for file extension if you are storing Attachments in "Data-Workattach-File" class , assuming your attachment is a file.