Activity Forums Salesforce® Discussions Can I use a apex:repeat on a VF page to iterate through related external data?

  • Himanshu

    Member
    April 30, 2016 at 1:29 pm

    Hi Piyush, Yes you can use apex:repeat in a vf page.

    You should be able to use the external objects just like a custom object. Here is an example using the repeat tag on the sample external object from the trailhead project:

    <apex:page standardController="Account">
    <apex:detail relatedList="false"/>
    <apex:repeat value="{!Account.Orders__r}" var="order">
    <apex:outputField value="{!order.orderID__c}"/>
    </apex:repeat>
    </apex:page>

     

    Hope this helps you.

Log In to reply.

Popular Salesforce Blogs

AI in Salesforce

Transform businesses with the power of Artificial Intelligence leveraged through Salesforce Einstein

Blog in

Artificial Intelligence is powering next-generation customer experiences with smart predictions, intelligent recommendations, timely automation and much more. Gartner predicts that by 2020, a staggering 85% of…

Popular Salesforce Videos