You need to sign in to do that
Don't have an account?
Daniel Wray
SearchResult object is null
Hi,
Please can someone see where this query is going wrong. I can't seem to return anything although the code is not complaining either.
var test = sforceClient.search("FIND {447787502823} IN ALL FIELDS RETURNING Contact (FirstName, Id, LastName)")
FirstName = ""; //password = ""; if (test.className == "SearchResult") { FirstName = test.records[0].get("FirstName__c"); } alert(FirstName); Also tried this on IN PHONE FIELDS BUT neither query returned anything or complained about the code????
HELP??? thanks | |
07-12-2006 02:21 AM |
- Mike
Also, if you are having trouble with the ajax toolkit, you can always just put the results into an alert. All of the objects have a toString() override that gives a decent idea of what the object is.
alert(test);