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 advanced customization article is intended for developers who are 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.

Examples

The Genesys Cloud for Salesforce SDK CTI extensions GitHub repository provides you with examples on how to use the extension points.

 

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