Lead Capture Integration with Activepieces (HTTP Request) Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JChambo
    Junior Member
    • Nov 2024
    • 5

    Lead Capture Integration with Activepieces (HTTP Request) Help

    Greetings!

    I'm trying to integrate EspoCRM into Activepieces via an HTTP Request step, but the step is failing when testing for some reason and I'm not sure why.

    I'm using the Administration > Lead Capture option within EspoCRM that provides the necessary HTTP Request information (URL, Method, Headers, and Payload) however it fails when testing. Here is my configuration.

    Click image for larger version

Name:	image.png
Views:	53
Size:	117.6 KB
ID:	112682
    Click image for larger version

Name:	image.png
Views:	35
Size:	75.0 KB
ID:	112683

    Here is the Payload:

    HTML Code:
    {
      "website": "{{trigger['body']['WebsiteURL']}}",
      "lastName": "{{trigger['body']['LastName']}}",
      "firstName": "{{trigger['body']['FirstName']}}",
      "accountName": "{{trigger['body']['BusinessName']}}",
      "description": "{{trigger['body']['Whattypesofservicesdoyouneed \n {{trigger['body']['Howsatisfiedareyouwithyourexistingwebsite \n {{trigger['body']['ProjectInformation']}}']}}']}}",
      "emailAddress": "{{trigger['body']['Email']}}"
    }​
    I've also tried without the "description" line item as well without success.

    Any ideas about what I'm doing wrong or why this would fail? I'm capturing form information from Contact Form 7 and trying to assign certain fields to the Lead Capture fields.

    Thanks!
  • yuri
    Member
    • Mar 2014
    • 8415

    #2
    Hi,

    Anything in Espo log?
    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

    • JChambo
      Junior Member
      • Nov 2024
      • 5

      #3
      yuri Thanks for responding!

      These lines are all I see:

      HTML Code:
      [2024-11-26 07:21:56] WARNING: (400) Field validation failure; entityType: Lead, field: phoneNumber, type: valid. :: POST /Lead

      Comment

      • yuri
        Member
        • Mar 2014
        • 8415

        #4
        It tells that the phone number is invalid. What value do you send?
        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

        • yuri
          Member
          • Mar 2014
          • 8415

          #5
          If you need to send random phone numbers, there are two options:
          • Use a custom varchar field instead.
          • Disable International phone numbers under Administration > Settings.
          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

          • JChambo
            Junior Member
            • Nov 2024
            • 5

            #6
            yuri What's strange is my Lead capture isn't even attempting to gather that field. I believe that log is from a previous test.

            Oddly enough there hasn't been an error in that log since a few days ago but I've since attempted to re-run the Task (that also still fails.)

            Are there other logs I can look at?

            Comment


            • shalmaxb
              shalmaxb commented
              Editing a comment
              F12 to inspect comsole logs or server logs in your hosting/server
          • yuri
            Member
            • Mar 2014
            • 8415

            #7
            How it fails? What error the sender receives?
            Last edited by yuri; 12-02-2024, 08:55 AM.
            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

            Working...