Section | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
To embed a call recording player in task records, perform the following steps:
- Go to Visualforce Pages within Setup in Salesforce.
On the left-hand side of the Salesforce window, in the Build section, expand Develop. - In the expanded list of items, click Pages. Visualforce Pages appears.
At the top of the list of Visualforce pages, click New.
Section Column width 60% A new Visualforce Page appears.
Column width 40% Type the following information:
Section Column width 60% Field Description Example Label A label that identifies the page in Setup tools. Embed Player Name The unique name that identifies the page in the API. The name must contain only alphanumeric characters. For further restrictions on field contents, click Help for this Page. Embed_Player Description An optional description of the page. Use to embed a call recording into the related Salesforce activity record Column width 40% Copy the following code and paste in to Visual Markup:
Code Block language java title Embedding a call recording player linenumbers true <apex:page showHeader="false" sidebar="false" standardController="Task"> <apex:outputPanel id="theIframePlayer"> <apex:iframe src="https://cloud11cloudx.contact-world.net/callcentre/callAnalytics/playaudiomatch.aspx?guid={!Task.CallObject}&autoplay=false" scrolling="true" id="theIframePlayer1"/> </apex:outputPanel> </apex:page>
Note title Set cloud number The URL in the example code accesses call recordings on Cloud 11x. If you want to access call recordings on a different cloud, change the cloud number—the number after 'cloud'—in the URL accordingly. For example, to access the call recordings on Cloud 12345, use https://cloud12345.contact-world.net/callcentre/callAnalytics/playaudiomatch.aspx?guid={!Task.CallObject}&autoplay=false. - Click Save. The code for your call recording player is saved. You must now add the Visualforce page to the appropriate page layout.
- On the left-hand side of the Salesforce window, in the Build section, expand Customize and then Activities.
- In the expanded list of items, click Task Page Layouts. Task Page Layout appearsGo to your Task object's page layouts, within Setup.
- Locate the task page layout that you want to add the embedded player to and click Edit alongside. The page layout appears in edit mode.
In the top section, click Visualforce Pages. The available pages appear.
Info Optionally add a new section and name it Call recording. For information about adding new Sections to page layouts, see Salesforce help. Section Column width 60% Drag Embed Player down to the new Call recording section. Click the spanner icon in the upper-right corner of the embedded player to edit the size of the player and so on.
Column width 40% - Click Save. The task page layout is saved. When you open a task record with a call recording, the call recording is played automatically.
...