• Amy Crumbliss 9
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I think my syntax is correct, but attachments are empty even for Accounts with attachments.
 
<apex:page StandardController="Account" readOnly="true" recordSetVar="Accounts" showHeader="false" sidebar="false" cache="false">
    
    <apex:variable var="forceDomain" value="http://districtbridges.force.com" />
    
    <apex:repeat value="{!Accounts}" var="account" rows="1">
        <h3>Account: {!account.name}</h3><br />
        Attachments:<br />
        <apex:repeat value="{!account.Attachments}" var="att">
            - {!att.id} {!att.name}<br />
        </apex:repeat>
        EndAttachments<br />
    </apex:repeat>
</apex:page>



 
I think my syntax is correct, but attachments are empty even for Accounts with attachments.
 
<apex:page StandardController="Account" readOnly="true" recordSetVar="Accounts" showHeader="false" sidebar="false" cache="false">
    
    <apex:variable var="forceDomain" value="http://districtbridges.force.com" />
    
    <apex:repeat value="{!Accounts}" var="account" rows="1">
        <h3>Account: {!account.name}</h3><br />
        Attachments:<br />
        <apex:repeat value="{!account.Attachments}" var="att">
            - {!att.id} {!att.name}<br />
        </apex:repeat>
        EndAttachments<br />
    </apex:repeat>
</apex:page>