Data Extraction from a E-Mail

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VivAws
    Junior Member
    • Jul 2022
    • 7

    Data Extraction from a E-Mail

    Is there a way to extract data from incoming e-mail and insert it into the system?

    To make it more concrete, here is the use case:
    People register for different events via a homepage. The registration data is to be sent to the system by e-mail. The aim is that the people who register can be transferred to ESPOCRM as new contacts.
    I first wanted to solve this via an API, but since there is a large number of events, it would be easier to do this via e-mail.

    Unfortunately, I have not yet been able to find anything on how to systematically recognise information from the e-mail or how to assign an entity at all.

    Is there a possibility?​
  • rabii
    Active Community Member
    • Jun 2016
    • 1250

    #2
    it will be difficult to hence mapping which data of the email should go into the crm e.g how can you define what is the name of the contact or the description etc i think you might want to use LeadCapture which would allow you to capture the details from your home page form. then you can add formula to transfer (convert the lead into contact).
    Rabii
    Web Dev

    Comment

    • yuri
      Member
      • Mar 2014
      • 8440

      #3
      You can utilize matchExtract function https://docs.espocrm.com/administrat...ngmatchextract. If you have Advanced Pack, utilize the workflow tool to catch email creation and then execute formula with matchExctract that will parse your email body and do some actions with extracted data.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • VivAws
        Junior Member
        • Jul 2022
        • 7

        #4
        Originally posted by rabii
        it will be difficult to hence mapping which data of the email should go into the crm e.g how can you define what is the name of the contact or the description etc i think you might want to use LeadCapture which would allow you to capture the details from your home page form. then you can add formula to transfer (convert the lead into contact).
        Yes, that's right.
        Something that could make it easier is to structure the information from the e-mail, similar to a forum form. That could possibly make mapping easier.

        I haven't looked much at converting to a lead, as each event had a completely separate page and so I would have to create a link per page. I thought I could increase the degree of automation via the email.​

        Comment

        • rabii
          Active Community Member
          • Jun 2016
          • 1250

          #5
          i guess people subscribing to the events are using some form on your homepage to subscribe correct ? if that is the case it doesn't matter how many forms you have you could send the submitted data to the lead entity via lead capture. it is a powerful option and easy to set up. have a look at it.

          Option provided by Yuri could work as well but not sure about the the content and requires a good knowledge of regular expression to extract each bit of data and then assign it to the contact entity.
          Rabii
          Web Dev

          Comment

          • bobcompleet
            Junior Member
            • Jun 2022
            • 10

            #6
            Originally posted by VivAws

            Yes, that's right.
            Something that could make it easier is to structure the information from the e-mail, similar to a forum form. That could possibly make mapping easier.

            I haven't looked much at converting to a lead, as each event had a completely separate page and so I would have to create a link per page. I thought I could increase the degree of automation via the email.​
            For a client we are currently implementing a solution like this based on webforms that send an email for each submission. We send the submissions to "forms@client.com" and set up an automation for each incoming mail that comes from "site@client.com"
            Since we control the email contents, we can easily use https://docs.espocrm.com/administrat...g/#stringmatch (or one of the other match functions, thanks yuri !!).
            All other fields go to the Lead's description field, so we can account for changes to the email.

            Ideally you would have have a form per event or send an api call to the web-to-lead endpoint, but in practice that might not be something you can control.

            Comment

            • esforim
              Active Community Member
              • Jan 2020
              • 2204

              #7
              By email it is quite possible using formula.

              Currently I have a few email which the sender use a template, when I get that email I use the formula to automatic Parent link it to my Case entity.

              But you probably want to use Workflow for bigger system from the sound of what you trying to do

              Comment

              Working...