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:
I’m having a very similar issue with Javascript snippet buttons ceasing to function. It started a couple of weeks ago and our technical team finally shrugged their shoulders and said I should go the forums. Our code is as follows:
var $ = skuid.$;
var opp = skuid.model.getModel(“Opportunity”).getFirstRow();
var o = new sforce.SObject(“Opportunity”);
o.Id = opp.Id;
var contactId = sforce.connection.query(“SELECT ID FROM Contact WHERE Name LIKE '%” + opp.Installer_Salesperson_Text__c + “%’ AND AccountId = '” + opp.AccountId + “'”);
if (contactId.getArray(“records”)[0] === null || contactId.getArray(“records”)[0] === ‘’ || contactId.getArray(“records”)[0] === undefined) {
alert(‘We were not able to find a contact record for the Salesperson contact on this opportunity. To login as user, please go to their contact page.’);
} else {
var result = sforce.apex.execute(‘GhostingUtil’,‘login’,{partnerConId:contactId.getArray(“records”)[0].Id});
if (result.includes(‘ERROR: ‘)) {
alert(result);
} else {
window.open(result,’_blank’);
}
}
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.