Follow the steps below to set up your Salesforce dashboard with the Enplug Web Page App.
Note: If using Salesforce Lightning, see this article.
Two-Factor Authentication
If you have two-factor verification enabled on your Salesforce account, you'll need to provide approval for your device. To do this, you'll need to set up an approved IP address on Salesforce.
You'll first want to confirm your current IP address with your IT Team and inquire if there's a preferred method for assigning approval.
After obtaining your IP address, you'll need all devices on said IP address to access your Salesforce dashboard.
To do so:
- Log into Salesforce.
- In the top left corner of the screen, click the gear icon.
- From the Setup drop-down, click Setup Home.
- Under Settings, click Security.
- Select Network Access.
- Under Network Access, click New.
- Here, you'll enter the IP address you'd like to provide access.
Add Salesforce to your Enplug Dashboard
To add Salesforce to your Enplug dashboard:
- Log into Enplug.
- Locate the Apps drop-down menu at the top of your dashboard.
- Select the Webpage App.
- Click Add Website in the upper right corner.
- Enter your Salesforce URL into the URL field.
- Choose the name and duration you prefer.
- Click Advanced Settings and fill in the following fields:
- Website Appearance: Mobile View
- Page rendering delay: 2
- Check the Reload each time page is shown box
- Auto-Reload: 10
- Scale text: 100
- Scroll down to the Javascript Settings section.
- Fill in your username and password.
- Copy and paste the following Javascript into the text field.
- This will log your device into Salesforce using your username and password.
(function() {
if ( document ) {
try {
document.getElementById('username').value = webView.getUsername();
document.getElementById('password').value = webView.getPassword();
document.getElementById('rememberUn').checked = true;
document.getElementById('Login').click();
function autorefresh() {
document.getElementById('refreshInput').click();
setTimeout(autorefresh, 60000);
} autorefresh();
} catch(error){}
} else {
setTimeout(arguments.callee, 500);
}
})();
Notes:
- Depending on your screen orientation, you may want to modify this line of code: frame.style.transform = 'translate3d( 0, -10%, 0)';. This modification would be to crop the dashboard header out of the screen.
- Landscape screens need a value of -10%.
- Portrait screens need a value of -5%.
For questions or concerns, please reach out to our Support Team at support@spectrio.com.