I tried like that but it does not work too!
Gravity Form to Leads please?
Collapse
X
-
Nth20,
Yes, you can try this way. Change the settings in Gravity Forms, and leave everything as is in EspoCRM.Comment
-
I contacted the Gravity Form staff and they informed the following error and asked me to contact you to find out how to prevent your API returning the 400 error:
2025-07-31 11:51:56.211333 - DEBUG --> GF_Webhooks:rocess_feed(): Sending webhook request to (My lead capture link); Array
(
[body] => {"firstName":"Hanh","lastName":"Nguyen","cNoOfG ues ts":"5","emailAddress":"testtesttest@gmail.com","addressCountry":"Viet Nam","cPhoneNumber":"09999999999988","cDepartureT r ain":"","cDepartureTickets":"","cDepartureAdditio n alServices":"","cDeparturePoint":"","cDepartureAdd itionalNotes":"","cReturnTrain":"","cReturnTickets ":"","cDepartureDate":"","cReturnDate":""}
[method] => POST
[headers] => Array
(
[Content-Type] => application/json
[Accept] => application/json
)
[sslverify] => 1
)
2025-07-31 11:51:56.269546 - DEBUG --> GF_Webhooks:rocess_feed(): Webhook sent. Response code: 400; body: {"messageTranslation":{"label":"validationFailu re" ,"scope":null,"data":{"field":"cDepartureDate", "ty pe":"valid"}}}
Last edited by Nth20; Yesterday, 01:29 PM.Comment
-
Nth20,
The 400 error is caused by EspoCRM not accepting an empty string for the Date type field. To fix it, don't send that field when it’s empty, or send a default valid date like "2025-01-01".Comment
-
Nth20 , I think you can add these conditions in a workflow and select the Action "Send HTTP Request". Supported request methods are:- GET
- POST
- PUT
- PATCH
- DELETE
Comment
Comment