Extension points in 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.
To customize the client behavior, create a single Apex file with an Apex class that implements one or more of the following interfaces:
- purecloud.CTIExtension.ClickToDial: Defines the onClickToDial method that customizes click-to-dial behavior.
- purecloud.CTIExtension.ScreenPop: Defines the onScreenPop method that customizes screen pop behavior for incoming alerting interactions.
- purecloud.CTIExtension.SaveLog: Defines the onSaveLog method that customizes saving interaction logs.
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
For more information about the integration, see About Genesys Cloud for Salesforce.