In the Form the User enters following data:
Firstname: John
Lastname: Smith
Company: HisCompany
Email: [email]john.smith@hiscompany.com[/email]
Mobilephone: 0123456789
Collecting all this information I have to form a link which I have to call
How I Do that?
Firstname: John
Lastname: Smith
Company: HisCompany
Email: [email]john.smith@hiscompany.com[/email]
Mobilephone: 0123456789
Collecting all this information I have to form a link which I have to call
https://whatever-crm-system.com/post?externalrequest=1&firstname=John&lastname=Smith&company=HisCompany&email=john.smith@hiscompany.com&mobilephone=0123456789
How I Do that?
Hi finc,
You can either build the URL using PHP in the OnSubmit After box to set the ChronoForms ReDirect URL (you'll fidn that code here somewhere). Or better, use the cURL Plugin to send the data to the CRM.
Bob
You can either build the URL using PHP in the OnSubmit After box to set the ChronoForms ReDirect URL (you'll fidn that code here somewhere). Or better, use the cURL Plugin to send the data to the CRM.
Bob
Thanks GreyHead,
so far I have done it
Do I have to use the & at the end or does it go without it
Target url:
a) https://whatever-crm-system.com/post?externalrequest=1&
b) https://whatever-crm-system.com/post?externalrequest=1
I have it without &
and did not get any CURL response in the debug mode
Maybe the receiving site is off the Job?
cf_CURL debug info
$curl_values: firstname=finc&lastname=finco&company=goodjob&email=finc.finco%40goodjob.com&mobilephone=0123456789
$params->target_url: https://whatever-crm-system.com/post?externalrequest=1
$ch: Resource id #109
CURL response:
so far I have done it
Do I have to use the & at the end or does it go without it
Target url:
a) https://whatever-crm-system.com/post?externalrequest=1&
b) https://whatever-crm-system.com/post?externalrequest=1
I have it without &
and did not get any CURL response in the debug mode
Maybe the receiving site is off the Job?
cf_CURL debug info
$curl_values: firstname=finc&lastname=finco&company=goodjob&email=finc.finco%40goodjob.com&mobilephone=0123456789
$params->target_url: https://whatever-crm-system.com/post?externalrequest=1
$ch: Resource id #109
CURL response:
Hi finc,
The target url is the part up to the ? (excluding the ?). That is https://whatever-crm-system.com/post
The remainder is part of the query string and needs to go in the 'Extra inputs data' box as externalrequest=1
Bob
The target url is the part up to the ? (excluding the ?). That is https://whatever-crm-system.com/post
The remainder is part of the query string and needs to go in the 'Extra inputs data' box as externalrequest=1
Bob
Thanks GreyHead,
I put "externalrequest=1" in the Extra Code TAB into the "Extra after CURL code" Box
Got this:
externalrequest=1
cf_CURL debug info
$curl_values: firstname=finc&lastname=finco&company=goodjob&email=finc.finco%40goodjob.com&mobilephone=0123456789mobilephone=0123456789
$params->target_url: https://whatever-crm-system.com/post
$ch: Resource id #109
CURL response:
Does it look okay?
Do I have to get something on "CURL response:"?
I put "externalrequest=1" in the Extra Code TAB into the "Extra after CURL code" Box
Got this:
externalrequest=1
cf_CURL debug info
$curl_values: firstname=finc&lastname=finco&company=goodjob&email=finc.finco%40goodjob.com&mobilephone=0123456789mobilephone=0123456789
$params->target_url: https://whatever-crm-system.com/post
$ch: Resource id #109
CURL response:
Does it look okay?
Do I have to get something on "CURL response:"?
Hi finc,
'That is' doesn't go in the Target URL box - just the URL.
external=1 goes in the 'Extra fields Data' box (sorry, the name has changed in the version I looked at).
Bob
'That is' doesn't go in the Target URL box - just the URL.
external=1 goes in the 'Extra fields Data' box (sorry, the name has changed in the version I looked at).
Bob
Yeah GreyHead I must be funny,
no it doesn't go there of course😀
just put it in images now:
General TAB

CURL params TAB

Extra code TAB

Debug Result:
cf_CURL debug info
$curl_values: firstname=finc&lastname=finco&company=goodjob&email=finc.finco%40goodjob.com&mobilephone=0123456789&externalrequest=1
$params->target_url: https://whatever-crm-system.com/post
$ch: Resource id #109
CURL response:
externalrequest=1 is on a wrong position up there!
It should be this way:
no it doesn't go there of course😀
just put it in images now:
General TAB

CURL params TAB

Extra code TAB

Debug Result:
cf_CURL debug info
$curl_values: firstname=finc&lastname=finco&company=goodjob&email=finc.finco%40goodjob.com&mobilephone=0123456789&externalrequest=1
$params->target_url: https://whatever-crm-system.com/post
$ch: Resource id #109
CURL response:
externalrequest=1 is on a wrong position up there!
It should be this way:
https://whatever-crm-system.com/post?externalrequest=1&firstname=finc&lastname=finco&company=goodjob&email=finc.finco@goodjob.com&mobilephone=0123456789
Hi finc,
That loosk good. The order of the parameters in the query string shouldn't make any difference.
Next thing to check is that the CURL plugin is enabled on the form Plugins tab (a green bar is 'enabled')?
Bob
That loosk good. The order of the parameters in the query string shouldn't make any difference.
Next thing to check is that the CURL plugin is enabled on the form Plugins tab (a green bar is 'enabled')?
Bob
Thanks GreyHead,
here is the Plugin TAB:
I think after this I will turn over to the CRM Support😉
here is the Plugin TAB:
I think after this I will turn over to the CRM Support😉

Hi finc,
Perfect.
Try setting 'Header in Response' to Yes and see if that shows anything useful.
I can't think of anything else. Check with the CRM folk. You may need some slightly different cURLOPT setting. I do have a development version of the plugin that is a bit more flexible if you need that.
Bob
Perfect.
Try setting 'Header in Response' to Yes and see if that shows anything useful.
I can't think of anything else. Check with the CRM folk. You may need some slightly different cURLOPT setting. I do have a development version of the plugin that is a bit more flexible if you need that.
Bob
Thanks GreyHead,
I will come back to You on the beta plugin if needed after checked with the CRM buddies.
Here is what I got else with 'Header in Response' YES:
CURL response: HTTP/1.1 200 OK Date: Thu, 13 May 2010 17:16:56 GMT Server: Apache-Coyote/1.1 Cache-Control: no-cache Pragma: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: text/html;charset=UTF-8 Content-Length: 2715 Set-Cookie: JSESSIONID=D7811099D43F177C4E017D4233AB2621; Path=/AESWebApp
I will come back to You on the beta plugin if needed after checked with the CRM buddies.
Here is what I got else with 'Header in Response' YES:
CURL response: HTTP/1.1 200 OK Date: Thu, 13 May 2010 17:16:56 GMT Server: Apache-Coyote/1.1 Cache-Control: no-cache Pragma: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: text/html;charset=UTF-8 Content-Length: 2715 Set-Cookie: JSESSIONID=D7811099D43F177C4E017D4233AB2621; Path=/AESWebApp
Hi finc,
Well that tells us that it's connecting to the CRM server OK. Just need to know why there is no response. Could be missing or mistyped parameter?
Looking at the query string there isn't anything there to identify your account with the CRM?
Bob
Well that tells us that it's connecting to the CRM server OK. Just need to know why there is no response. Could be missing or mistyped parameter?
Looking at the query string there isn't anything there to identify your account with the CRM?
Bob
Hi GreyHead,
I have talked with the CRM support and they say that the data has been received.
Only thing is that my curl is waiting a receipt about this transfer and that they
are not going to send it.
So for a closer look I will send you a PM with
the real link to this case.
Regards
I have talked with the CRM support and they say that the data has been received.
Only thing is that my curl is waiting a receipt about this transfer and that they
are not going to send it.
So for a closer look I will send you a PM with
the real link to this case.
Regards
Hi finc,
If you set debug to No then cURL shouldn't need to wait for a response.
Bob
If you set debug to No then cURL shouldn't need to wait for a response.
Bob
This topic is locked and no more replies can be posted.