New answers tagged

0 votes

Account Related Contacts in same Custom table in LWC in accordian manner

Salesforce provides an inbuilt LWC component for this i.e Tree Grid Reference link : Tree Grid We need to fetch Accounts along with contacts by the inner query Then add contacts as _children as below ...
user avatar
3 votes

how to restrict the deletion of account if they have contact in lookup without coding

This would normally be done using an appropriate apex trigger, but since you want to avoid code this can be done using a before deletion record triggered flow, though the error the user will see is ...
user avatar
  • 27.5k
0 votes
Accepted

How to assign the lead owner data to contact in a trigger?

You can write that something like this. First, we'll initialize some variables. Set<Id> ownerIds = new Set<Id>(); Account[] newAccounts = new Account[0]; Contact[] newContacts = new ...
user avatar
  • 434k
0 votes

How to relate two accounts?

Sounds like you're talking about the standard OOTB feature called Account Hierarchies. What you're describing here can be achieved through this. Hope this helps :)
user avatar
  • 81

Top 50 recent answers are included