how to make GET and POST request on leadcapture?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tilamap365
    Junior Member
    • Mar 2023
    • 4

    how to make GET and POST request on leadcapture?

    Hello everybody!
    How can I do it in espo get request for leadcapture through api. So I can post data through the api that I get when I create a leadcapture

    ```

    Method
    POST
    Headers
    Content-Type: application/json
    Payload​
    {
    "firstName": "FIRST_NAME",
    "lastName": "LAST_NAME",
    "emailAddress": "EMAIL_ADDRESS"
    }​
    ```

    But how can I call this data back with a GET request, let's say I'm using postman for this job​
  • lazovic
    Super Moderator
    • Jan 2022
    • 809

    #2
    Hi tilamap365,

    You should create a Workflow or BPM with Lead Target Entity and use @leadCapture or @leadCapture.LEAD_CAPTURE_ID signals in the Workflow or BPM: https://docs.espocrm.com/administrat...ontactsleads_1.

    Then, you will be able to access the attributes of the lead created through Lead Capture in Workflow or BPM Actions.

    Keep in mind that the signals feature, workflows and BPMs is a part of the Advanced Pack extension.​

    Comment

    Working...