Page 1 of 2
No records being returned from Salesforce.
Posted: Tue Jan 21, 2014 4:42 pm
by Carl Porch
I have a service connection to Salesforce and successfully test a query against the service (in the service definition area); however, when I connect my form to the query, and use the same authorizations -- following mapping -- no records are returned to the form. Any suggestions as to what I'm missing?
No records being returned from Salesforce.
Posted: Tue Jan 21, 2014 5:20 pm
by maxkatz
Check in the browser dev. tools if the request is successful and if you get any data back: http://docs.appery.io/documentation/d...
No records being returned from Salesforce.
Posted: Tue Jan 21, 2014 5:37 pm
by Carl Porch
While the query tests good -- the query from the form (using the same access token and query) is returning an error?
No records being returned from Salesforce.
Posted: Tue Jan 21, 2014 5:38 pm
by maxkatz
No records being returned from Salesforce.
Posted: Tue Jan 21, 2014 5:40 pm
by Carl Porch
I went to your documentation. Let me work with that for a bit, and then I'll have more to say on the subject.
No records being returned from Salesforce.
Posted: Tue Jan 21, 2014 7:14 pm
by Carl Porch
My problem appears to be the Cross Domain error when running the query from my App's form rather than the query test area.
One of the solutions appears to be running your form via the Appery-IO proxy, in a manner similar to the query -- however, I don't see how to do this. Or is this option not available when testing a form?
No records being returned from Salesforce.
Posted: Tue Jan 21, 2014 7:45 pm
by Carl Porch
My problem appears to be the Cross Domain error when running the query from my App's form rather than the query test area.
One of the solutions appears to be running your form via the Appery-IO proxy, in a manner similar to the query -- however, I don't see how to do this. Or is this option not available when testing a form?
No records being returned from Salesforce.
Posted: Tue Jan 21, 2014 9:14 pm
by Kateryna Grynko
Hi Carl,
Do you mean a service Test tab? You don't need proxy there as it uses backend. There can't be a Cross Domain error.
No records being returned from Salesforce.
Posted: Tue Jan 21, 2014 9:32 pm
by Carl Porch
Which JavaScript functions should I be using (from the sales force utilities)?
No records being returned from Salesforce.
Posted: Tue Jan 21, 2014 10:39 pm
by Carl Porch
Currently I'm only using the loginSalesforce() function, but I'm thinking that I should be grabbing some values following the login with these functions -- to hook into the services properly.