Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Go to Setup in Salesforce.
  2. On the left-hand side of the Salesforce window, in the Build section, expand Develop.
  3. In the expanded list of items, click PagesVisualforce Pages appears.
  4. At the top of the list of Visualforce pages, click New.

    Section
    Column
    width60%

    A new Visualforce Page appears.

    Column
    width40%

    New VisualForce Page

  5. Type the following information:

    Section
    Column
    width60%
    FieldDescriptionExample
    LabelA label that identifies the page in Setup tools.Embed Player
    NameThe 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
    DescriptionAn optional description of the page.Use to embed a call recording into the related Salesforce activity record
    Column
    width40%

    New VisualForce Page

  6. Copy the following code and paste in to Visual Markup:

    Code Block
    languagejava
    titleEmbedding a call recording player
    linenumberstrue
    <apex:page showHeader="false" sidebar="false" standardController="Task">
    <apex:outputPanel id="theIframePlayer">
    <apex:iframe src="https://cloud8cloud11.contact-world.net/callcentre/callAnalytics/playaudiomatch.aspx?guid={!Task.CallObject}&amp;start=0&amp;matched=" scrolling="true" id="theIframePlayer1"/>
    </apex:outputPanel> 
    </apex:page>
    Note
    The URL in the example code accesses call recordings on Cloud 811. 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}&start=0&matched=.
  7. Click Save. The code for your call recording player is saved. You must now add the Visualforce page to the appropriate page layout.
  8. On the left-hand side of the Salesforce window, in the Build section, expand Customize and then Activities.
  9. In the expanded list of items, click Task Page LayoutsTask Page Layout appears.

  10. 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.
  11. 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
    width60%

    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
    width40%

    Embedding call recording player

  12. Click Save. The task page layout is saved. When you open a task record with a call recording, the call recording is played automatically.

...