You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: