You need to sign in to do that
Don't have an account?
Bob 11
File Related List in Lightning Web Component
How would turn this visulforce related list that shows files that are attached on a parent account on a service appointment record. The below code works, but doesnt look appealing and I need to add it a community.
<apex:page standardController="ServiceAppointment"> <apex:relatedList subject="{!ServiceAppointment.Account_Name__c}" list="AttachedContentDocuments" /> </apex:page>
There are few OOTB standard Lighting components provided by Salesforce which can display your related list record from Parent as well. You can edit your page using lightning app builder and then search Related list, drop it to the Page and then you can choose the Parent Record and the section you want to display.
Also if you still want to go custom then watch out FILE RELATED LIST IN LIGHTNING WEB COMPONENT (https://salesforcecodex.com/salesforce/file-related-list-in-lightning-web-component/)
Thanks,
Ashish Singh.