Leverage Salesforce bookmarklets to enhance the productivity
Author
While working with salesforce, we visit a few pages quite frequently. For me they are-
- setup,
- object manager,
- developer console
- and any app which I’m currently working on.
Now, navigating to these pages take 2-3 clicks at most. But here are some pain points-
- Sometimes that spinner comes when we click on the gear icon and then it takes a while to go away.
- Also, you cannot navigate to some pages directly every time
– like from the developer console, you cannot go to the setup page of the org directly.
– and from the setup page, the app is only accessible if you search and then click on it.
- Now this one is a far cry but, after logging in you need to wait for the page to load, to be able to click on buttons and do this navigation.
So, couldn’t we just bookmark these pages and keep accessing them with a single click? Yeah, that resolves a large chunk of the problem, but those bookmarks will only work for a single org. we often work with multiple salesforce orgs, so plain bookmarks are not of much use. But the solution is similar!
Stumbling upon solution
A while ago I came across a project- 1sgithub. It’s an open-source project to open any GitHub repo in read-only mode in VS Code for the web pretty quickly(1s in the name is for 1 second of load time!). All you need to do is replace github in any repo URL with github1s. While the objective of this project is quite different from what we are trying to do here. But their installation method hit me. They crafted a bookmark with JavaScript in its URL-
So, suppose you are visiting a GitHub repo and want to open it in VS code for web, you will just click on this bookmark- It will check if the current window URL is a GitHub repo, then will replace github with github1s and you will be redirected to their website github1s. Amazing! right? These bookmarks are called bookmarklets.
Bookmarklets are browser bookmarks that execute JavaScript instead of opening a webpage. They’re also known as bookmark applets, favlets, or JavaScript bookmarks. Bookmarklets are natively available in all major browsers, including Mozilla Firefox and Chromium-based browsers like Chrome or Brave. – Article on FreeCodeCamp
After this revelation, I started to play with the idea of putting JavaScript in bookmark URLs. And realized we can use this technique to create bookmarks for our frequently accessed pages in salesforce, which will work across every org.
Bookmarklet for ‘Setup’ of Salesforce org
Let’s create a bookmarklet to directly open ‘setup’ –
Here window.open() will open the page in a new tab(as the target is ‘_blank’). Inside it is our URL, window.location.hostname will get us the instance URL of the currently open salesforce org and we concatenate the setup page path, which is always fixed across all orgs(so this bookmark will work across any given salesforce org).
Drag and drop this link-
javascript: window.open('https://' + window.location.hostname + '/lightning/setup/SetupOneHome/home', '_blank')
– on the bookmark bar to quickly install this bookmarklet.
Let’s give it a try, open any salesforce org first. Go to any app, now suppose you need to open setup. Previously you would click on the gear ic
What if the current window is not a salesforce org and I click on the bookmarklet?
Well, it will still try to go on that path. So, if google.com is open it will try to open- https://google.com/lightning/setup/SetupOneHome/home and we will get a 404 error. We could add logic in our JS to check if we are in a salesforce org(like check if the URL has ‘force.com’ in it) but that logic may not always work perfectly(force.com may be there in some non-salesforce org URL) and we will get 404 error.
Similarly, let’s open ‘Object Manager’ and ‘app’.
For the Object manager,
Drag and drop this link-
javascript: window.open('https://' + window.location.hostname + '/lightning/setup/ObjectManager/home', '_blank')
– Object Manager on the bookmark bar to quickly install this bookmarklet.
For the App, we can use- (This will just redirect to the last open salesforce app in our org)
Drag and drop the following link-
javascript: window.open('https://' + window.location.hostname + '/one/one.app', '_blank')
– on bookmark bar to quickly install this bookmarklet.
Let’s try to open the ‘Developer Console’.
If you see the developer console its hostname in the URL is slightly different from the salesforce org URL. But with the full might of JS at our disposal, we march ahead. We only need to replace ‘lightning.force.com’ with the path of the developer console. Again, the path is the same across all orgs, so one bookmark to rule them all!
Drag and drop this link-
javascript: window.open('https://' + window.location.hostname.replace('lightning.force.com', 'my.salesforce.com/_ui/common/apex/debug/ApexCSIPage', '_blank'))
– on the bookmark bar to quickly install this bookmarklet.
Extending this Idea
While I created bookmarks for the pages I need, you may create for other paths you find yourself visiting frequently. Suppose you frequently open the custom settings page in setup, you may create a bookmark like this-
and navigate directly to it, instead of typing ‘custom setting’ every time in the search bar of setup.
You may insert prompt() statements in the URL at places where you need input from the user. For example- we often put ids in salesforce org URLs to navigate to the record page. So, we can create an URL like-
It will prompt the user for Input and then automatically redirect to the record page in the currently open salesforce org with the given record id. No more manual meddling with URLs.
Conclusion
Now we can access those salesforce pages, with a single click. I enjoy using this and since have abandoned using UI to navigate to those pages. The best part is once you log in, even if the page is still loading, you can click on the bookmarklet, and you will be redirected. No more waiting for the page to load just to open the developer console of the given org. Also, you can go from any screen to any screen directly, like opening the object manager page directly from developer console, yay!
Pranshu Goyal, Director of Products at Mirekta, states: “We envision DSM to be used by every small to a medium-sized organization dealing with bad data and want to get rid of duplicates easily with no cost. We have faced issues dealing with duplicates in our organization. That inspired us to make a solution that is not only simple to use but can be used widely to make the organization’s data clean to make them more efficient and productive. We want DSM to be a solution for every organization looking for duplicate management capability better than the Salesforce out-of-the-box solution with no additional cost.”
Recent Posts
-
Salesforce 2025 Game-Changing Trends You Need to Know28 Jan 2025 Blog
-
Agentforce 2.0: Everything You Need to Know About the Latest Update22 Jan 2025 Blog
-
The Ultimate Guide to NetSuite Development: Tools and Techniques10 Jan 2025 Blog
-
How Salesforce Nonprofit Cloud Transforms Fundraising Strategies10 Jan 2025 Blog
-
The Impact of Salesforce Development Partners on Small and Medium Businesses08 Jan 2025 Blog
-
Key Questions to Ask When Hiring a NetSuite Development Partner08 Jan 2025 Blog
-
Salesforce Agentforce Demystified: Your Essential Guide08 Jan 2025 Blog
-
Salesforce and NetSuite Integration: Driving Business Efficiency with Precision06 Jan 2025 Blog
-
Everest Group has positioned Mirketa as an Aspirant in the report24 Dec 2024 Press Release
-
Salesforce Einstein20 Dec 2024 E-Book
-
Order to Cash Cycle with NetSuite20 Dec 2024 E-Book
-
Empower Your Marketing Strategy with Salesforce Marketing Cloud's Automation Studio Activities13 Dec 2024 Blog
-
Salesforce CPQ for Subscription-based Businesses10 Dec 2024 Blog
-
Unleashing the Magic of Einstein Prediction Builder10 Dec 2024 Blog
-
Customized Templates and Branding with Salesforce Experience Cloud10 Dec 2024 Blog
-
Unleashing the Power of Real- Time Reports and Dashboards in NPSP10 Dec 2024 Blog
-
Top 4 Salesforce Automation Tools in 202409 Dec 2024 Blog
-
Salesforce Service Cloud Implementation: The Ultimate Guide09 Dec 2024 Blog
-
Salesforce CRM Implementation Partner Enhancing Automation in Healthcare09 Dec 2024 Blog
-
Shorten Your Sales Cycle in 8 Steps: Salesforce CPQ Implementation Guide09 Dec 2024 Blog
-
Overcoming Top 5 Common Sales Challenges With Salesforce Revenue Cloud06 Dec 2024 Blog
-
Empowering Sales Teams with Einstein: 5 Proven Methods to Drive Sales Success05 Dec 2024 Blog
-
Mirketa Recognized by NetSuite as Summer 2024 Alliance Partner Spotlight Award Winner04 Dec 2024 Blog
-
Salesforce Agentforce: Revolutionizing AI with Autonomous Agents03 Dec 2024 Blog
-
How to send information from one Salesforce Org A to another Org B using Salesforce Integration?30 Nov 2024 Blog
-
Mastering the Salesforce Quote to Cash Process: A Complete Guide for Businesses - Copy28 Nov 2024 E-Book
-
Salesforce Education Cloud in Higher Education: Transforming University Operations and Student Experience14 Nov 2024 Blog
-
The Future of Healthcare: Transforming with Salesforce Health Cloud & Elixir EHR14 Nov 2024 Blog
-
Mastering the Salesforce Quote to Cash Process: A Complete Guide for Businesses13 Nov 2024 Webinar
-
Mastering the Salesforce Quote to Cash Process: A Complete Guide for Businesses30 Oct 2024 E-Book
-
Mastering the Salesforce Quote to Cash Process: A Complete Guide for Businesses28 Oct 2024 Blog
-
Integrating Amazon OpenSearch Service with Salesforce26 Oct 2024 Blog
-
Salesforce Support and Services: Why They Are a Must for Optimizing CRM Performance10 Oct 2024 Blog
-
Salesforce Admin Support: Unveiling the Backbone of CRM Success03 Oct 2024 Blog
-
Mastering Salesforce Financial Services Cloud: A Step-by-Step Implementation Guide03 Oct 2024 Blog
-
Recap Dreamforce 2024: Unleashing the Power of AI and Data with Mirketa27 Sep 2024 Blog
-
How Salesforce’s Agentforce Revolutionizes Manufacturing Operations26 Sep 2024 Blog
-
Top 5 Benefits and Use Cases of Implementing Salesforce Health Cloud for Healthcare Providers24 Sep 2024 Blog
-
A Beginner’s Guide to NPSP Basics13 Sep 2024 Blog
-
How to Avoid 9 Common Mistakes when Selecting a Salesforce Consulting Partner09 Sep 2024 Blog
-
Expert Guide to Salesforce Implementation in 202405 Sep 2024 Blog
-
Mirketa to present a webinar on Digital Transformation for Nonprofits'01 Sep 2024 Press Release
-
Salesforce Support Specifics: How to Get Assistance and Resolve Issues Swiftly28 Aug 2024 Blog
-
Mirketa Expands Its Presence in Non-Profit Space with Salesforce Nonprofit Cloud01 Aug 2024 Press Release
-
Top Reasons to Choose an ISV as Your Preferred Salesforce Partner19 Jul 2024 Blog
-
Empowering Component Development in Salesforce Lightning06 Jul 2024 Blog
-
How Salesforce Macros Can Boost Your Productivity and Improve Customer Experience?26 Jun 2024 Blog
-
The Relationship Between NPSP and Salesforce Standard Objects10 Jun 2024 Blog
-
Unlocking Business Insights with Salesforce Reports and Dashboard04 Jun 2024 Blog
-
Maximizing Alumni Engagement with Salesforce Communities and Marketing Automation03 Jun 2024 Blog
-
NPSP Package vs. Nonprofit Cloud: Understanding the Differences and Choosing the Right Solution30 May 2024 Blog
-
Unleashing Soft Credit and Marketing Gift in Nonprofit Cloud: A Revolutionary Approach to Fundraising27 May 2024 Blog
-
Best Practices for Donor Management in NPSP24 May 2024 Blog
-
Grant Management with NPSP22 May 2024 Blog
-
Leveraging NPSP Automation for Managing Constituents20 May 2024 Blog
-
Comprehensive Guide to CPQ Product Rules15 May 2024 Blog
-
Enhancing Customer Experience with Salesforce Experience Cloud14 May 2024 Blog
-
Best Practices for Salesforce Marketing Cloud Implementation10 May 2024 Blog
-
Mastering Inventory Management for MedTech with Salesforce Health Cloud09 May 2024 Blog
-
Mastering Inventory Management for MedTech with Salesforce Health Cloud08 May 2024 Blog