Millau upgrade 11.2.9 Issue with "skuid.sfdc.search"

  • 1
  • Problem
  • Updated 2 months ago
  • (Edited)
Hello all,

I recently upgraded Skuid from version Rockaway - Iteration 15 8.15.17 to Millau 11.2.9 (JQuery 1.11.1 to 3.0.0).  I am troubleshooting a SOSL query being made in one of my autocomplete fields using skuid.sfdc.search().  After the call is made, I am getting the following error in the search result:

error: "Expected skuid.SearchRequest.ObjectRequest but found "Account" at [line:1, column:58]"

Chrome Developer Console (Search Result)
{sosl: null, results: null, error: "Expected skuid.SearchRequest.ObjectRequest but found "Account" at [line:1, column:58]", request: {...}}
Code for skuid.sfdc.search 11.2.9
var $ = skuid.$;
var queryText = 'skuid';
// Perform our SOSL Search
$.when(skuid.sfdc.search({
query: queryText,
searching: "ALL FIELDS",
returning: [
{ "objectName": "Account", "fields": ["Name","CreatedDate"] },
{ "objectName": "Contact", "fields": ["FirstName","LastName","CreatedDate"] }
] })).done(function(searchResult){ console.log("searchResult error output here = " + searchResult); $.each(searchResult.results,function(i,sobjectResult){ var objectName = sobjectResult.objectName; var records = sobjectResult.records; console.log('* Found ' + records.length + ' ' + objectName + ' records'); $.each(records,function(j,record){ if (objectName==='Contact') { console.log('Found Contact: ' + record.FirstName + ' ' + record.LastName); } else console.log('Found Account: ' + record.Name); }); }); }).fail(function(searchResult){ console.error('Search failed: ' + searchResult.error); }).always(function(searchResult){ console.log('Raw SOSL generated: ' + searchResult.sosl); console.log('Original search request'); console.log(searchResult.request);  });
What's interesting is that the promise callback is invoking "done" rather then "fail".  In any case, the code works fine on our other non-upgraded envrionments and the code syntax and structure has not changed in 11.2.9.    

Any help would be greatly appreciated,

Thanks!
Photo of Bonzy

Bonzy

  • 132 Points 100 badge 2x thumb

Posted 2 months ago

  • 1

Be the first to post a reply!