Topic
How to create a custom link to run Document Package on the Home tab inside of Salesforce in Classic and separate steps for doing so in Lightning
Instructions
In Classic
<apex:slds />
<div class="slds-scope">
<a href="https://mysalesforcedomain.com/apex/loop__looplus?eid=InsertSFRecordId&InsertotherParametershere" class="slds-button slds-button_brand">Create Report</a>
</div>
</apex:page>
- Ensure "Custom Links" is on your Home Page Layout. To do so:
- Setup
- Type "Home" in Quick find box
- Select "Home Page Layouts"
- Find the Page Layout you are using and ensure it's on the page layout
- Add a custom link
- Setup
- Type "Home" in Quick Find box
- Select "Home Page Components"
- Select "Edit" next to Custom Links
- Add the name of your link in the Bookmark field. This is how the link will appear on the Home Page
- Directly across, add your URL. You can either add the entire URL or URL section that mimics a button. It could either look like
- https://mysalesforcedomain.com/apex/loop__looplus?eid=InsertSFRecordId
- /apex/loop__looplus?eid=InsertSFRecordId
- You can add various button parameters here. Please see this documentation for possibilities: https://help.nintex.com/en-US/docgen/docservices/#docgen-sfdc/Services/setup/ButtonWizardReference.htm
- Save
- Be in Lightning
- Navigate to Home Tab
- Select the Gear Icon on the top right of your page
- Edit Page
- Find the Rich Text Component under Standard
- Drag this onto the page into an existing section
- Once on the layout, remain in the Edit page view. Click inside Rich Text section you just added
- The Rich Text Properties will appear on the right hand side of your page
- Type the desired name of your link in the Rich Text area
- Highlight the text and select the Link Button
- Paste your entire Lightning domain URL in the URL box. Exclude http://
- Append "/apex/loop__looplus?eid=InsertSFRecordId" to the end of the base my domain URL
- Use button parameters to customize your button. See linked documentation above for ideas
- Setup
- Visualforce pages
- New
- Add a Label and Name (really whatever you'd like to name it)
- Check "Available for Lightning Experience, Lightning Communities, and the mobile app
- On Visualforce Markup tab, in the body, paste this code:
<apex:slds />
<div class="slds-scope">
<a href="https://mysalesforcedomain.com/apex/loop__looplus?eid=InsertSFRecordId&InsertotherParametershere" class="slds-button slds-button_brand">Create Report</a>
</div>
</apex:page>
- Save
- Navigate to Home page (In Lightning)
- Select the Gear in the Top Right
- Edit Page
- On the Left, under "Standard" components, select "Visualforce". Drag this onto your page.
- Once it's on the page, select inside that newly added section. Information on this section will popup on the right side of your page.
- Label - Whatever you'd like
- Visualforce Page Name - Find and select the visualforce page you created above
- Save
- If you go back to the Home page, you'll see the newly add section with a button call "Create Report". This is what you'll want.
Additional Information
Your links will not be dynamic
**The solutions provided in this article are not technically supported. These are intended to be ideas to get customers going in the right direction. Official product support is on the road map.
**The solutions provided in this article are not technically supported. These are intended to be ideas to get customers going in the right direction. Official product support is on the road map.
Related Links