Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching Responses?? #2

Open
mpgeiger opened this issue Apr 15, 2016 · 0 comments
Open

Caching Responses?? #2

mpgeiger opened this issue Apr 15, 2016 · 0 comments

Comments

@mpgeiger
Copy link

I have pre-pended the SOQL and SOSL nodes to parameterize a query like:
var q = "FIND {" + myLN +"} IN ALL FIELDS RETURNING Account (Id, Name), Contact (Id, Name)";

and myLN is a query parameter that is passed in the URL.

I also found that passing a "parameterized query" into the SOQL does not return the correct results.

The query run correctly the first time, but if you change the QP to another value it returns the original result. Here is a sample debug screenshot.

msg.payload : array [1][ { "attributes": { "type": "Contact", "url": "/services/data/v36.0/sobjects/Contact/003i000001bYUZ1AAO" }, "Id": "003i000001bYUZ1AAO", "Name": "Jim Jones" } ] 4/15/2016, 5:19:18 PMLNmsg.ln : string [3]Jon 4/15/2016, 5:19:18 PMQuerymsg.query : string [76]FIND {*Jon*} IN ALL FIELDS RETURNING Account (Id, Name), Contact (Id, Name) 4/15/2016, 5:19:25 PMc3a7d31d.5044dmsg.payload : array [1][ { "attributes": { "type": "Contact", "url": "/services/data/v36.0/sobjects/Contact/003i000001bYUZ1AAO" }, "Id": "003i000001bYUZ1AAO", "Name": "Jim Jones" } ] 4/15/2016, 5:19:25 PMLNmsg.ln : string [3]Gei 4/15/2016, 5:19:25 PMQuerymsg.query : string [76]FIND {*Gei*} IN ALL FIELDS RETURNING Account (Id, Name), Contact (Id, Name) 4/15/2016, 5:19:36 PMc3a7d31d.5044dmsg.payload : array [1][ { "attributes": { "type": "Contact", "url": "/services/data/v36.0/sobjects/Contact/003i000001bYUZ1AAO" }, "Id": "003i000001bYUZ1AAO", "Name": "Jim Jones" } ] 4/15/2016, 5:19:36 PMLNmsg.ln : string [3]Gei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant