Skip to main content
Kenny_Elkington
Adobe Employee
Adobe Employee
Feb 12, 2016 5:31 PM UTC

Instantly look up a lead by ID

Are you tired of opening lead database, opening a new lead page and replacing the ID with the one you actually want to see?  Just drag this link to your bookmark toolbar, click it(while on a page in your Marketo instance), type in the ID of the lead you want to see and press enter.

Find Lead​

Bam, there's your lead in a new tab.

Here's the code:

(function () {
      (function () {
           var % 20lead = prompt("Enter%20Lead%20ID", 0);
           if (lead > 0) {
                var % 20host = document.location.host;
                var % 20url = "//" + host + "/leadDatabase/loadLeadDetail?leadId=" + lead;
                var % 20myWindow = window.open(url);
           } else {
                console.log(lead);
                alert("Invalid%20Lead%20ID.%20%20ID%20must%20be%20an%20integer%20greater%20than%20zero.")
           }
      })()
})();

PS:  If you can't drag the link, just create a new bookmark, and set this as the location:

javascript:(function(){(function(){var%20lead=prompt("Enter%20Lead%20ID",0);if(lead>0){var%20host=document.location.host;var%20url="//"+host+"/leadDatabase/loadLeadDetail?leadId="+lead;var%20myWindow=window.open(url);}else{console.log(lead);alert("Invalid%20Lead%20ID.%20%20ID%20must%20be%20an%20integer%20greater%20than%20zero.")}})()})();
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Grégoire_Miche2
Level 10
Feb 12, 2016 5:37 PM UTC

Hi Kenny,

This is cool

I gather we can't have the same with email adress

-Greg

Translate
Kenny_Elkington
Adobe Employee
Adobe Employee
Feb 12, 2016 5:41 PM UTC

You could but it would need to be a whole lot more sophisticated and would need to call to an API.  It's also less needed since you can just type it in on the front page of Lead Database to get your results.

Translate
Feb 12, 2016 5:56 PM UTC

Nifty! Thanks @Kenny Elkington​!

Translate