Activity Forums Salesforce® Discussions What is contentType in Attachments in Salesforce?

  • Aastha

    Member
    June 11, 2020 at 3:15 pm

    Hello Deepak,

    ‘ContentType’ is a restricted picklist field in Attachment object, which means it accepts only the values that are listed in picklist values.
    It has values like :
    application/html
    application/java-archive
    application/javascript
    application/msword
    application/octet-stream
    application/octet-stream;type=unknown
    application/opx
    application/pdf
    application/postscript
    application/rtf
    application/vnd.google-apps.document
    application/vnd.google-apps.drawing
    application/vnd.google-apps.form
    application/vnd.google-apps.presentation
    application/vnd.google-apps.script
    application/vnd.google-apps.spreadsheet
    application/vnd.ms-excel
    application/vnd.ms-excel.sheet.macroEnabled.12
    application/vnd.ms-infopath
    application/vnd.ms-powerpoint
    application/vnd.ms-powerpoint.presentation.macroEnabled.12
    application/vnd.ms-word.document.macroEnabled.12
    application/vnd.oasis.opendocument.presentation
    application/vnd.oasis.opendocument.spreadsheet
    application/vnd.oasis.opendocument.text
    application/vnd.openxmlformats-officedocument.presentationml.presentation
    application/vnd.openxmlformats-officedocument.presentationml.slideshow
    application/vnd.openxmlformats-officedocument.presentationml.template
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
    application/vnd.openxmlformats-officedocument.spreadsheetml.template
    application/vnd.openxmlformats-officedocument.wordprocessingml.document
    application/vnd.openxmlformats-officedocument.wordprocessingml.template
    application/vnd.visio
    application/x-gzip
    application/x-java-source
    application/x-javascript
    application/x-shockwave-flash
    application/x-sql
    application/x-zip-compressed
    application/xhtml+xml
    application/xml
    application/zip
    audio/mp4
    audio/mpeg
    audio/x-aac
    audio/x-ms-wma
    audio/x-ms-wmv
    audio/x-wav
    image/bmp
    image/gif
    image/jpeg
    image/png
    image/svg+xml
    image/tiff
    image/vnd.adobe.photoshop
    image/vnd.dwg
    image/x-photoshop
    message/rfc822
    text/css
    text/csv
    text/html
    text/plain
    text/rtf
    text/snote
    text/stypi
    text/webviewhtml
    text/x-c
    text/x-c++
    text/xml
    video/mp4
    video/mpeg
    video/quicktime
    video/x-m4v
    video/x-ms-asf
    video/x-msvideo

    Thanks and Regards
    Aastha Jain

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos