Carl Porch
Posts: 0
Joined: Tue Jan 21, 2014 4:42 pm

No records being returned from Salesforce.

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

No records being returned from Salesforce.

Check in the browser dev. tools if the request is successful and if you get any data back: http://docs.appery.io/documentation/d...

Carl Porch
Posts: 0
Joined: Tue Jan 21, 2014 4:42 pm

No records being returned from Salesforce.

While the query tests good -- the query from the form (using the same access token and query) is returning an error?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

No records being returned from Salesforce.

What is the error?

Carl Porch
Posts: 0
Joined: Tue Jan 21, 2014 4:42 pm

No records being returned from Salesforce.

I went to your documentation. Let me work with that for a bit, and then I'll have more to say on the subject.

Carl Porch
Posts: 0
Joined: Tue Jan 21, 2014 4:42 pm

No records being returned from Salesforce.

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?

Carl Porch
Posts: 0
Joined: Tue Jan 21, 2014 4:42 pm

No records being returned from Salesforce.

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

No records being returned from Salesforce.

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.

Carl Porch
Posts: 0
Joined: Tue Jan 21, 2014 4:42 pm

No records being returned from Salesforce.

Which JavaScript functions should I be using (from the sales force utilities)?

Carl Porch
Posts: 0
Joined: Tue Jan 21, 2014 4:42 pm

No records being returned from Salesforce.

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.

Return to “Issues”