Customizing search and screenpop in Salesforce

For customizing search and screenpop implement custom search class


Methods

Implement searchCallInteractions() method for customizing search and screenpop for voice interactions

searchCallInteractions(String params) → {String}

Parameters:
Name Type Description
params String URI encoded json object with the following fields:
  • softphoneLayout - softphone layout object described in Salesforce OpenCTI documentation
  • callInfo - object with the following fields:
    • ani
    • dnis
    • number
    • campaign
    • callType
    • campaignId
    • f9CallType
    • skillName
    • skillId
    • sessionId
    • callId
    • startTime
    • locale
    • interactionType
  • c2dObjectIdJSON - Сlick-to-Dial object id
  • salesforceCompatibilityMode - value should be 'Classic' or 'Lightning'
  • crm - contact fields in key/value format
  • cav - call attached variables in key/value format
Returns:

Type: String

URI encoded json object with the following fields:

  • objects - search result objects
  • url - screen pop url

Implement searchTextInteractions() method for customizing search and screenpop for text interactions

searchTextInteractions(String params) → {String}

Parameters:
Name Type Description
params String URI encoded json object with the following fields:
  • softphoneLayout - softphone layout object described in Salesforce OpenCTI documentation
  • phoneNumber - in case of sms text interaction
  • email - text interaction email
  • salesforceCompatibilityMode - value should be 'Classic' or 'Lightning'
  • crm - contact fields in key/value format
  • cav - custom fields in key/value format
Returns:

Type: String

URI encoded json object with the following fields:

  • objects - search result objects
  • url - screen pop url