Facebook Ads to Espocrm
Status: Closed · Asked by Hariko on · 0 views
With the espocrm it is possible to use the function https://docs.espocrm.com/administration/web-to-lead/#lead-capture
to transfer data from a form.
The request looks like this
URL
https://crm.xxxx.de/api/v1/LeadCapture/xyztoken
Method
POST
Headers
Content-Type: application/json
Payload
{
"firstName": "FIRST_NAME",
"lastName": "LAST_NAME",
"emailAddress": "EMAIL_ADDRESS", }
How can I pass the output of a Facebook Ads to the Pabbly API as required?
Hey @Hariko
As per your API call to Espro you have mentioned you can use the "Custom Request" action type of API by the Pabbly action step.
Please refer to the following screenshot for the same -

Thanks @Supreme , this works if I enter the required data manually. But how do I pass the variables that Pabbly got in the previous module, from the Facebook Ads?

Thanks @Supreme , this works if I enter the required data manually. But how do I pass the variables that Pabbly got in the previous module, from the Facebook Ads?
Please recapture the real lead data once in your trigger response and then map the data again.
Okay @Supreme, with your support, I made it. Thank you very much.
One more question, the function is executed every 10 minutes, would it be possible to reduce this time?
Hey @Hariko
One more question, the function is executed every 10 minutes, would it be possible to reduce this time?
Instead, you can use the "Facebook Lead Ads: New Lead (Instant)" trigger event to capture the lead data instantly.
Kindly try this on your end and let us know if that helps you out.
