A component that renders a valid phone number as click-to-dial enabled for Open CTI or Salesforce CRM Call Center. This field respects any existing click-to-dial commands for computer-telephony integrations (CTI) with Salesforce.
<apex:page id="pageId" sidebar="true" showHeader="true">
<!-- Make sure to keep Showheader="true" -->
<apex:includeScript value="/support/console/24.0/integration.js"/> // this is required to invoke call
<apex:form>
<apex:pageblock>
<apex:pageBlockSection title="Account Details with Oldest call" id="listIds">
<apex:outputText label="Account Name"><a href="/{!accId}" target="_blank"> {!accountName}</a></apex:outputText>
<!--- <apex:outputText value="{!Phone}" label="Phone"/> --> <apex:outputText label="Phone"> <support:clickToDial number="{!Phone}" entityId="{!accId}"/></apex:outputText>
<apex:outputText value="{!baId}" label="bId"/>
<apex:outputText value="{!whcSegmentation}" label="WHC Segmentation"/>
<apex:outputText value="{!lastCallDate}" label="Last Call Date"/>
</apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</apex:page>
<apex:page id="pageId" sidebar="true" showHeader="true">
<!-- Make sure to keep Showheader="true" -->
<apex:includeScript value="/support/console/24.0/integration.js"/> // this is required to invoke call
<apex:form>
<apex:pageblock>
<apex:pageBlockSection title="Account Details with Oldest call" id="listIds">
<apex:outputText label="Account Name"><a href="/{!accId}" target="_blank"> {!accountName}</a></apex:outputText>
<!--- <apex:outputText value="{!Phone}" label="Phone"/> --> <apex:outputText label="Phone"> <support:clickToDial number="{!Phone}" entityId="{!accId}"/></apex:outputText>
<apex:outputText value="{!baId}" label="bId"/>
<apex:outputText value="{!whcSegmentation}" label="WHC Segmentation"/>
<apex:outputText value="{!lastCallDate}" label="Last Call Date"/>
</apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</apex:page>
0 Comments