Hello,
My application uses Salesforce as it's primary DB and in CF5 and CF6 I can use a REST API to draw data into the forms for processing using custom php and CURL.
I am now trying to achieve the same results with CC6, and I am sure it is possible but I can't get it to work.
Basically I want to execute some php (which I already have working in CC5 and 6) to return an associative array containing the data I want to display. The code returns an array in the form:
So I placed this code in a custom code object and ticked the "return in a var" option. But it didn't give any result, and I didn't know exactly how to use the {debug:} to see what is going on.
Any assistance would be much appreciated.
Tim
My application uses Salesforce as it's primary DB and in CF5 and CF6 I can use a REST API to draw data into the forms for processing using custom php and CURL.
I am now trying to achieve the same results with CC6, and I am sure it is possible but I can't get it to work.
Basically I want to execute some php (which I already have working in CC5 and 6) to return an associative array containing the data I want to display. The code returns an array in the form:
myarray
[0]
[Field1] => data1
[Field2] => data2
...
[1]
[0]
[Field1] => data3
[Field2] => data4
...
So I placed this code in a custom code object and ticked the "return in a var" option. But it didn't give any result, and I didn't know exactly how to use the {debug:} to see what is going on.
Any assistance would be much appreciated.
Tim