Hello, i am trying to integrate the form my friend have on his Wordpress website to the CMS.
Looked at the API Docs and found that Web-to-Object best suitable to what im trying to do.
Any way i dont have his credentials, i am build for him the function ready to put inside the wordpress, so i opened account (free for 14 days) only for this testing.
Thats what my json looks like:
The formId took from the landingId in the frontend script.
'formData' => [
'formId' => '6c24a5e4-a08c-41c5-a868-19b49197a152',
'formFieldsData' => [
['name' => 'Contact', 'value' => 'Ohad Goldstein'],
['name' => 'Contact.Mobile', 'value' => 'Ohad Goldstein'],
['name' => 'Contact.JobTitle', 'value' => 'Ohad Goldstein'],
['name' => 'Contact.Email', 'value' => 'Ohad Goldstein'],
]
]
to: https://008995-marketing.bpmonline.com/0/ServiceModel/GeneratedObjectWe…
I am always getting an error:
{"SaveWebFormObjectDataResult":"{resultMessage:\"Not allowed request URL.\",resultCode:-1}"}
Even trying to request authenticate first (which succeed) -> grab the cookie -> and append him to this request header along with the BPMCSRF, and still this error.
I saw one old post with same error message and the respond was to update the domain to https://hooks....
But that was from zapier, what should i do for testing from my computer (localhost...) or later on when deployed the code and that will sent from the server ip probably.
One more question how can i edit the needed fields for the form in the admin panel ?
many of the form fields he want to pass does no configured in the leads table...
Thanks ahead