Search This Blog

Friday, November 18, 2011

Custom "Login as Owner" button

As an admin of an org with ~100 records types and countless page layouts, I often have to login as a specific user to troubleshoot something he/she is not seeing. Most of these troubleshooting sessions would be with the record owner on the phone where he/she would give me an account number or a booking number and we'd go look at the record. Having to go to Setup | Manage Users | Users.... or search for the user then go to the user detail and click on Login was getting old. This lead me to create a custom button that I placed on the Admin page layout for objects such as Accounts and Opportunities. This is useful for me because our admins have a specific page layout for each object that contains a lot of audit fields that we do not want to include in the other layouts. Now when a user contacts us, we can simply navigate to the record in question and click on the "Login as Owner" button and viola! We are now logged in as the owner seeing the specific record being discussed in their assigned layout. No searching, not traversing the Setup menu.

Here's the code for the button. This code is for the Lead object. Customizing it for other objects is cake. Just set the targetURL to match the appropriate object Id. In the Lead example below, it's set to "{!Lead.Id}"

Click on Setup | Customize | Leads (adjust this accordingly) | Buttons and Links | New
Label: Login as Owner
Name: Autofilled (Login_as_Owner)
Display Type: Detail page Button
Behavior: Display in New Window
Content Source: URL

Link Code:
/servlet/servlet.su?oid={!Organization.Id}&suorgadminid={!Lead.OwnerId}&retURL=%2F005%3FretURL%3D%252Fui%252Fsetup%252FSetup%253Fsetupid%253DUsers%26setupid%3DManageUsers&targetURL=/{!Lead.Id}



6 comments:

  1. You should participate in a contest for probably the greatest blogs on the web. I will recommend this site! See what someone likes, comments and follows on Insta with Snoopreport ... No need to download Insta stalker app, Snoopreport Instagram tracker will show photos and videos in the world.

    ReplyDelete
  2. Employment Law Assignment Help specialists from GreatAssignmentHelp.com. We are an online assignment help service accessible across Australia, the US, UK, Southeast Asia, and the Middle East. With broad involvement with academic writing, we have a proven track record of quality writing at an ostensible value that meets the remarkable needs of candidates in our nearby markets.

    ReplyDelete
  3. Does your HP printer not work well? Well, you do not embarrass yourself as every problem brings the self-solution itself. In case your scanning and printing work disturbs without any hard glitches, then you can implement the right hierarchy to rectify this issue. But, sometimes problems become out of control, and taking the help of an HP Support representative offers you a sigh of relief. It would be good to reach out to a third party professional team to call them on the HP Printer Support number. Our service is available to you throughout the day.
    Frequently asked question (FAQ) of printer: How do I contact HP customer support?
    Thank You.

    ReplyDelete
  4. USA students can get in touch with our Online Assignment Help USA for exclusive content. We make sure to provide authentic content by writing it from scratch with in-depth research. All our content has relevant information and is curated in the right way without any grammatical errors.

    ReplyDelete
  5. Nepal Tour Packages Wonderful post! I am getting the wonderful ideas to explore top popular tourist attractions of Nepal. Travelers can learn important tips to get the best deals for Nepal tourism packages. This blog is very interesting for me. I am very happy for this amazing blog.

    ReplyDelete
  6. Readers are always admiring informational blogs, and this is truly one of them. You did a great job. If you want to enhance writing skills, Sourceessay.com based assignment writer is the best solution for you. Phd thesis Melbourne

    ReplyDelete