Service Flow Manager > SFM Search > Search Designer for Admin > Salesforce Lighting UI - Enabling Custom Links for SFM Search
Salesforce Lighting UI - Enabling Custom Links for SFM Search
1. Create Visualforce pages for the ServiceMax SFM Search 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 the above step.
The new tabs created are listed along with other object tabs under Other Items option under App Launcher.
Was this helpful?