3

I'm using a StandardController page like the following to try and display the URL of a Google Doc. To test this, I've uploaded a real Google Doc to an Account record, and I can see the 098 record alright:

account-attachments

<apex:page standardController="Account">
  <apex:pageBlock >
    <apex:pageBlockTable value="{!Account.CombinedAttachments}" var="combinedAttachment">
      <apex:column value="{!combinedAttachment.Id}" />
      <apex:column value="{!combinedAttachment.ContentUrl}" />
    </apex:pageBlockTable>
  </apex:pageBlock>
</apex:page>

And sure enough, the Salesforce API version is 31.0 in the metadata:

<?xml version="1.0" encoding="UTF-8"?>
<ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>31.0</apiVersion>
    <availableInTouch>false</availableInTouch>
    <confirmationTokenRequired>false</confirmationTokenRequired>
    <label>AccountAttachments</label>
</ApexPage>

But when I view the page, the ContentUrl is invariably null - can anyone offer a sanity injection?

no-url

This is still a problem in API v32.0

enter image description here

1

0

You must log in to answer this question.

Browse other questions tagged .