Activity Forums Salesforce® Discussions How to query email and images from feedItems in case object?

  • Sudhir

    Member
    July 5, 2017 at 2:52 pm

    Query like:

    select Id, Body, isRichText, Title, Type from CaseFeed where ParentId = '50090000008cXoS'

    where

    If Type = ContentPost, then it is an attachment. Then check for ContentType of the file

    if(contenttype =='image/jpeg' || contenttype=='image/png' || contenttype=='image/gif' || contenttype=='image/jpg' ){ ... }

    If isRichText = True, parse the body to check for email ids.

     

    CaseFeed query

  • shariq

    Member
    July 6, 2017 at 5:28 am

    Hi sudhir,

    Could u explain isRichText more.

    thanks.

  • Parul

    Member
    September 16, 2018 at 4:29 am

    Hi

     

    I am not able to do this can you explain me how to get parentId.

     

     

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos