0

I have an App configured (with my Logo setup) and the app has some standard tabs, etc.

I also have a button that the user can click from any Account record which takes them to a custom visualforce page I built.

When the go to this visualforce page, is it possible to switch them into the App context so that the logo will display in the upper left?

1
  • AFAIK, there's no way to do this reliably in Classic, and it's most likely blocked in Lightning anyways.
    – sfdcfox
    Commented Jul 21, 2016 at 2:04

1 Answer 1

0

Just have the following in your button URL:

/servlet/servlet.Integration?lid={yourAppId}&tsid={yourTabId}

replace the text in {} with your app id and your tab id and make it "Display in existing window without sidebar or header" here are some screenshots of my config, i tested and it worked

The Config: The config

The Account(Notice i'm on Sharing POC app): The Accounts Page with Button

The End Result(Notice i'm in different App, with the Test Tab highlighted): After redirection

4
  • If I do this - will the lid and tsid change when a customer installs my managed package? In other words, can I hard code these two values or do I need to dynamically SELECT them from the database? Commented Jul 21, 2016 at 17:23
  • i believe the values would change from one org to the other, so I'd say a custom label is what you need then reference that custom label, but you'll need to connect to the Metadata API to get the values of the Tab & App then set the Custom Label PS. This additional bit wasn't mentioned in your original question, to get better answers try to give all the relative information.
    – Haytham
    Commented Jul 22, 2016 at 1:07
  • Ok, thanks for the help. And I'm sorry for not putting in all the information. Commented Jul 22, 2016 at 2:18
  • I think this is no more working when I tested.. Can u please confirm ? I checked in both lightning and classic
    – sf_user
    Commented Jan 7, 2019 at 18:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .