Instantly look up a lead by ID

Kenny_Elkington
Marketo Employee
Marketo Employee

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.")}})()})();
1133
3
3 Comments
Grégoire_Miche2
Level 10

Hi Kenny,

This is cool

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

-Greg

Kenny_Elkington
Marketo Employee

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.

Anonymous
Not applicable

Nifty! Thanks Kenny Elkington​!