Good morning! I am trying to add a OnClick JavaScript button we have in Salesforce to be available in skuid. The button is an Event custom list button that is available for Multi-Record Selection. I am not familiar with JavaScript so any help converting this process to Skuid is greatly appreciated!
Below is the OnClick JavaScript code:
{!REQUIRESCRIPT(“/soap/ajax/30.0/connection.js”)}
{!REQUIRESCRIPT(“/soap/ajax/34.0/apex.js”)}
var accountId = ‘{!Account.Id}’;
var accountTerritory = ‘{!Account.Territory__c}’;
var accountSalesRegion = ‘{!Account.Sales_Region__c}’;
var accountSegment = ‘{!Account.Account_Segment__c}’;
var accountOwner = ‘{!Account.Account_Executive__c}’;
var newURL = sforce.apex.execute(
“AutomaticOppAssigment”, “OpportunityAssignment”,
{
acctIdInput:accountId,
acctTerritoryInput:accountTerritory,
acctSalesRegionInput:accountSalesRegion,
acctSegmentInput:accountSegment,
acctOwnerInput:accountOwner
});
parent.location.href = newURL;
Question
Add custom onclick Javascript to skuid
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
