function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Abhishek chauhan 20Abhishek chauhan 20 

I need to create a LWC components for Account obj means in the Home page of "Sales" i want to show All the name , email, contact of all Account record in a table can someone help ...?

SubratSubrat (Salesforce Developers) 
Hello Abhishek ,

I have came across a discussion which might help you with your requirement -> https://developer.salesforce.com/forums/?id=9062I000000DLDKQA4

Hope the above information helps !
Thank you.
Ramesh DRamesh D
Hi @abhishek,

here is the example LWC component you can use to achive your logic 

HTML:
<template>
    <ul>
        <template for:each={accounts} for:item="account">
            <li key={account.Id}>
                <div>{account.Name}</div>
                <div>{account.Email}</div>
                <ul>
                    <template for:each={account.Contacts} for:item="contact">
                        <li key={contact.Id}>{contact.Name} - {contact.Email}</li>
                    </template>
                </ul>
            </li>
        </template>
    </ul>
</template>
Javascript: 
import { LightningElement, wire } from 'lwc';
import getAccountsAndContacts from '@salesforce/apex/AccountController.getAccountsAndContacts';

export default class AccountsWithContacts extends LightningElement {
    accounts = [];

    @wire(getAccountsAndContacts)
    wiredAccounts({ error, data }) {
        if (data) {
            this.accounts = data;
        } else if (error) {
            console.error(error);
        }
    }
}

Controller:
public with sharing class AccountController {
    @AuraEnabled(cacheable=true)
    public static List<Account> getAccountsAndContacts() {
        List<Account> accounts = [SELECT Id, Name, Email, (SELECT Id, Name, Email FROM Contacts) FROM Account];
        return accounts;
    }
}

Hope this helps you yo achieve what you wanted