1

We've implemented live agent in our org and w're hoping to be able to keep the details tab in focus when a chat session begins.

We search for a contact with the prechat api and it opens the contact record on top of the details page in an External Page tab.

enter image description here

Is it possible to keep the Details tab in focus and open the Contact Record tab behind it?

3

1 Answer 1

1

It didn't occur to me that you might not be aware of it, but you will need the Salesforce Console Integration Toolkit Developer Guide here.

There are four methods that will be useful for you here:

  • getFocusedPrimaryTabId()

    Returns the ID of the primary tab on which the browser is focused. This method is only available in API version 25.0 or later.

  • getFocusedSubtabId()

    Returns the ID of the subtab on which the browser is focused. For example, a case ID or account ID. This method is only available in API version 25.0 or later.

  • focusPrimaryTabById()

    Focuses the browser on a primary tab that is already open with the specified ID. This method is only available in API version 22.0 or later.

  • focusSubTabById()

    Focuses the browser on a subtab that is already open with the specified ID. This method is only available in API version 22.0 or later.

Without seeing your code, it is difficult to recommend how to compose these, but that should get you started.


You should also take a look at Connecting to the Toolkit:

For a third-party domain:

<script src="https://c.<yourInstance>.visual.force.com/support/console/39.0/integration.js" type="text/javascript"></script>

For third-party domains, it’s necessary to specify an absolute URL to integration.js to use the toolkit. If you can't determine the org's instance, you can access the toolkit library at the default instance. Contact Salesforce for the default instance’s URL.

2

You must log in to answer this question.

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