Skuid Javascript snippet buttons not working in summer '18

  • 1
  • Problem
  • Updated 5 months ago
Skuid on Salesforce
Photo of Corinne Cordon

Corinne Cordon

  • 202 Points 100 badge 2x thumb

Posted 5 months ago

  • 1
Photo of Corinne Cordon

Corinne Cordon

  • 202 Points 100 badge 2x thumb
yesterday we noticed that skuid in console wasn't working  from the utility bar (omnichannel bar).  Our Skuid expert (who only works at night) said it was due to "they added dependency on integration.js file of salesforce console.".  Well today, none of our buttons work, which means we can't print disclosures, or send emails, or create new loans, etc.  The code for the buttons looks like this:

var params = arguments[0],
$ = skuid.$;

console.log('Clicked');
if(sforce.console && sforce.console.isInConsole()){
    

console.log('In Console');
sforce.console.openPrimaryTab(null, 'our_domain/apex/loop__looplus?sessionId='+skuid.utils.userInfo.sessionId+'... Docs Nintex-'+params.row.Id, openSuccess, 'Loan Docs Nintex'+params.row.Id);
var openSuccess = function openSuccess(result) {
    if (result.success == true) {
console.log('success');
    
    } else {
console.log('Not success');
        var newwindow=window.open('our domain/apex/loop__looplus?sessionId='+skuid.utils.userInfo.sessionId+'... Docs Nintex','_blank','scrollbars=yes,toolbar=no,status=no');
        newwindow.focus();
    }
};    
}else{
    
console.log('Not in Console');
    var newwindow=window.open('our domain/apex/loop__looplus?sessionId='+skuid.utils.userInfo.sessionId+'... Docs Nintex','_blank','scrollbars=yes,toolbar=no,status=no');
    newwindow.focus();
}


Any ideas?