function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kalai ArumugamKalai Arumugam 

How to identify a method is invoked from a service console?

Kalai ArumugamKalai Arumugam
What I'm trying to do is, upon clicking a custom button from a vfpage, it should perrform some update and redirect to the standard page of the custom object. When I do the above operation, I dont want to see header and sidebar in service-console, where as in normal browser window I want to see them.
anto nirmalanto nirmal
Hi Kalai,

How about creating two VF Pages, One VF page has the the side bar and header and just a place holder for another VF page.
The second VF page is you acutal functionality.
The Outer VFpage can embed the innerpage and can be used in normal pages.
The Inner page can be used directly in service console.

This solution will have better code resuability and avoid code redundancy as well.
Let me know if that helps.

As a common practice, if your question is answered, please choose 1 best answer.
Additionally you can give every answer a like if that answer is helpful to you.

Regards,
Anto Nirmal