Trigger Interview Scenario

preview_player
Показать описание

#salesforce #apex #salesforceapex #salesforcedevelopers #salesforcetraining
Do check out the playlist on
1. Salesforce Lightning
2. Salesforce
3. Triggers in salesforce
4. Admin

Do share this video with your FRIENDS, SCHOOL NETWORK, IT NETWORK, AND SALESFORCE NETWORK.

Let's make Salesforce easy for everyone.

Quick Catch :
Рекомендации по теме
Комментарии
Автор

Pls hide yourself or minimise. It will help to understand. This setup hide the code. Thank you

dhruvtrivedi
Автор

I had a doubt
What if we directly create instance of account using accountId from contact and update using a list with out writing any SOQL.
Is it a good approach?

List<Account> accUpList= new List<Account>();

Ex: Account acc= new Account();
acc.Id = conobj.AccountId;
acc.Description = conobj.Name;
accUpList.add(acc);

update the list if its not empty

rakesh_
Автор

pls dont use for loop inside query because its not a best practice

ragavaraghav