• Eugene Korsunsky
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 0
    Replies

1. I've develped an Apex class that is parsing and extracting data from emails from different sources, such as Trulia, Zillow, HotPads, Yelp, DirectLine, etc.,  forwarded via Gmail app to SF email server. For new/unique lead emails the class creates Lead records . The problem is each email received results in creating from 1 to 8 duplicate records and the relevant debug logs. When I send my  test email directly to the SF alias there is only one debug log created.  I've created a duplicate matching rule and even installed a trigger to prevent duplicates. This helped for emails from 2 sources, but not for others.  I understand that a workaround may be deleting the duplicates periodically on schedule, but can anybody suggest a real-time solution?
Is it a system problem? My guess is SF email server is not a match to Gmail server and cannot reply with email received in time, so Gmail keeps re-sending emails and SF eventually process the whole batch of the same emails accumulated in the queue without blocking the duplicates.

2. Another issue is only for DirectLine emails that are not received by SF emal server at all,  both via Gmail app and directly (no debug logs created). The DirectLine domain is in the allowed list. 

Has anybody encountered the above issues?
Thank you!


Thank you!

I'm trying to capture name and phone number from Trulia lead email that has recently started using encoding I don't understand. 

In Trulia email the data looks as follows:

An Dxxxxg
 
a.dxxxxg@me.com*
 
(XXX) XXX-XXXX

When I click forward in outlook it looks:
An Dxxxxg
 
@texta.dxxxxg@me.com*
 
@text(xxx) xxx-xxxx

When I use email.plainTextBody the printout shows the following keywords with blank space after them:
From:   
Email:  
Phone:

Can anybody please help with the code to capture the data?

Thank you!
 
I need to parse HTML emails from several sources to create new leads. I've created an Apex class where I can filter out new lead emails and separate email sources in order to apply related fixed formats. I still have problems wth extrracting the required data, such as first and last name, phone, email, and property address of interest. I have difficulty identifying correct line numbers in  String[] emailBody = email.plainTextBody.split('\n', 0);  and keep getting substring indexing errors. HTML and blank lines may be a problem. Can anybody help with the code? 
Thank you!

_______________________________

From Trulia 

Hi rentals@int ,
A new renter is interested in your listing at 4XX Norwood Cir. Check out the details below.
From: Anxxd xxxg
Email: anxxx@hotmail.com*
Phone: (408) 416-9XX9
Message: I am interested in this rental and would like to schedule a viewing. Please let me know when this would be possible.


From HOTPADS
 Mhlle contacted you about Delightful Cambrian 3 Bed 2 Bath Home.
 
From: Mhlle Kxx<mlsxxx88@gmail.com>
Phone: 40839824XX

I'm interested in XXX Frxxnela Drive, San Jose, CA 95124. Please contact me with more information!


 
 from Zillow


vxxx gyyy says:
" 27XX Massachusetts Ave, Redwood City, CA 94061 HI. we are moving from NY to Menlo Park in July. Is this place available to start from July - we are looking for a 1 yr lease. You can reach me at: (212) 5XX-0000 Contacted via Zillow.com"
Respond within 10 minutes for best results.
vaXXr@hotmail.com

212.52XX 0000

 this contact on Zillow.
I'm new to  SF.  As I understand,  custom tabs cannot be customized like home tabs, so can I create home tabs for different apps  and link them to custom tabs of a single app?   If yes, how?