Extension points in Genesys Cloud for Salesforce


Note: This article applies to Genesys Cloud for Salesforce.

Prerequisites

  • A version of the managed package that includes the Extension Point Settings section. For more information, see Configure extension points.

The integration exposes extension points (or interfaces) in Apex that you can use to develop methods that customize click-to-dial, screen pop, and saving interaction logs.

Note: This article is an advanced customization topic meant for developers familiar with Salesforce.

To customize the client behavior, create a single Apex file with an Apex class that implements one or more of the following interfaces:

If you implement more than one extension point (or interface), place them all in the same Apex file. Define the Apex class as global so the code can be called by the integration.

global class MyCTIExtensions implements
    purecloud.CTIExtension.ClickToDial,
    purecloud.CTIExtension.ScreenPop,
    purecloud.CTIExtension.SaveLog {
    
    public String onClickToDial(String data) {
        ...
    }

    public String onScreenPop(String data) {
        ...
    }

    public String onSaveLog(String data) {
        ...
    }
}

After you create an Apex class that implements one or more of the interfaces, configure settings in Salesforce to use this class. For more information, see Configure extension points.

For more information about the integration, see About Genesys Cloud for Salesforce.