Service Modules > Scheduling and Optimization > Dispatch Console > Dispatch Console > Appendix > Salesforce Lightning UI – Enabling Custom Links
Salesforce Lightning UI – Enabling Custom Links
To replace custom links for the Dispatch Console component with an equivalent option in Salesforce Lightning UI, perform the following steps:
1. Create Visualforce pages for the Dispatch Console component by using the following code:
<apex:page >
<script type="text/javascript">
window.onload = openSearch();
function openSearch() {
var urlString = '{!URLFOR($Page.SVMXC__SFMSearchDelivery, null, [showHeader=true])}';
console.log("Opening the SFM Search Delivery page using the URL - " + urlString);
if( (typeof sforce != 'undefined') && (sforce != null) ) {
sforce.one.navigateToURL(urlString);
} else {
//Set the window's URL
window.location.href = urlString;
}
}
</script>
</apex:page>
2. Create Visualforce tabs and associate them with the Visualforce pages created in step 1.
Was this helpful?