• Tim Hunter 12
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hello Techies,
I have successfully created an update trigger but I'm having an issue. I want to fire trigger only when the case was received from an API(Through Integration from another app)Trigger is fired every time when case is updated. There no option in case object which can help me to identfy that case is came from specific tool
Is there any way to tell to which FeedItem an EmailMessage belongs? The ParentId field on EmailMessage shows to which Case an EmailMessage belongs, but I can't find any way to figure out the parent FeedItem of the email message via Apex code or SOQL.

The linkage must exist somewhere because the Case feed knows where to display a given email message. Maybe the connection is hidden in an object that isn't exposed to Apex developers?

A similar question was asked here and never answered - https://developer.salesforce.com/forums#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=9062I000000QvsdQAC