Hi,
I'm trying to have incoming emails added to the corresponding BO based on a reference number available on the email subject :
- incoming email subject = "IDTAG1234"
- the rule should find the corresponding BO Account and add this incoming email to the Account.ReceivedEmailAccounts.
This rule works :
If ReceivedEmail.Subject CONTAINS 'IDTAG' Then
FIND Accounts WHERE Accounts.ID2=ThisReceivedEmail.Subject
CREATE ReceivedEmailAccounts WITH ReceivedEmailAccounts.Correspondent=Accounts,
ReceivedEmailAccounts.Subject=ReceivedEmail.Subject
ReceivedEmail.State='Read'
As you can see it only works if the email subject contains only the IDTAG, if someone sends an email with Subject: " about my Account number : IDTAG1234" it fails.
I've tried without success with ReceivedEmail.Subject ENDSWITH 'IDTAG' and ReceivedEmail.Subject STARTSWITH 'IDTAG'
Any proposal welcome !