• AmitZA
  • NEWBIE
  • 10 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I am looking to write a class on the Task object to categorize emails coming in or going out of the system when they are forwarded into the system by Email-To-Salesforce BCC address but they are synced the same except:

Additional To: xxxx@xxxx.com
CC:
BCC:
Attachment:

should be categorized as an Outgoing Email

while 

Additional To: 
CC:
BCC:
Attachment:

should be categorize as an Incoming Email.

How should the I write the IF statement?

Thanks!
I am looking to write a class on the Task object to categorize emails coming in or going out of the system when they are forwarded into the system by Email-To-Salesforce BCC address but they are synced the same except:

Additional To: xxxx@xxxx.com
CC:
BCC:
Attachment:

should be categorized as an Outgoing Email

while 

Additional To: 
CC:
BCC:
Attachment:

should be categorize as an Incoming Email.

How should the I write the IF statement?

Thanks!