Mapping LeadCapture API parameters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dfad
    Junior Member
    • Jan 2025
    • 2

    Mapping LeadCapture API parameters

    I try to integrate Espo CRM (locally installed) with Calendly scheduling service.

    The problem is that Espo CRM Lead Capture functionality (/api/v1/LeadCapture/) is waiting for parameters with fixed names: "firstName", "lastName", "emailAddress" etc; and Calendly also sends payload with fixed but different names: "first_name", "last_name", "email" etc.
    So is it possible to map parameters at Espo CRM side?
    Correspondingly:
    "first_name" -> "firstName"
    "email" -> "emailAddress"
    ...

    Also, during that mapping I need to convert an ISO8601-compatible datetime to just a date, and concatenate a few strings to a single one, is that also possible at Espo CRM side?
    A brief search at this forum didn't give a result though I don't think I'm the first with these questions.
  • yuri
    Member
    • Mar 2014
    • 8510

    #2
    I'd recommend creating a custom API endpoint (route) in EspoCRM that will convert all needed 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

    • dfad
      Junior Member
      • Jan 2025
      • 2

      #3
      Thank you, I'll check how to do this!

      Comment

      Working...