Тёмный

Apex Triggers - 52 (IBM Interview Scenario) 

SFDC Ninja
Подписаться 7 тыс.
Просмотров 2,1 тыс.
50% 1

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@goldylodhi2116
@goldylodhi2116 4 месяца назад
Thanks sir ❤ nice explanation
@adityasinghbisen4215
@adityasinghbisen4215 4 месяца назад
the trigger will run every time the record is updated when the amount is more than 10k , we should have checked if the values has changed and then only allow the logic to run.
@crazyvlogs2366
@crazyvlogs2366 4 месяца назад
Hi whenever u create a video on trigger scenarios which are asked in real time interviews please make sure that u must inform the experience level. I hope you follow it.
@sfdcninjas
@sfdcninjas 3 месяца назад
Sure i will follow it but sometimes people just comment about the scenario and company in which it is asked not the experience.
@AnjaiahBmk
@AnjaiahBmk 3 месяца назад
could you make a video on triiger by using record type
@sfdcninjas
@sfdcninjas 3 месяца назад
Sure , do you have any scenario?
@nikhilvadithala
@nikhilvadithala 4 месяца назад
Can you provide solution for below scenario Asked in accenture interview Opportunity has a relationship with child object opportunity line item When ever opportunity stage is updated as closed/won The status/ any text field on most recently modified child record should be updated as approved And for remaining records field should be updated as rejected In case the opportunity stage is updated as closed/lost Most recent child record status should be updated as lost and remaining child records should be updated as rejected
@kumareshghosh5593
@kumareshghosh5593 4 месяца назад
You did not differentiate the update operation where every time the amount gets 10000 , trigger will run, but it should check previous oldMap value and then send mail I guess, however using map was not necessary for user there so I implemented my code: public with sharing class amountOwnerHandler { //if any opportunity is created or updated and amount is greater than 10000,then send an email to the record owner regarding the DML operation. public static void afterOperation(List newOpps, Map oldMapOpps){ set ownerIds=new Set(); for(opportunity opps:newOpps){ //for insert if(opps.amount!=null && opps.amount>=10000 && oldMapOpps==null){ ownerIds.add(opps.OwnerId); } //for update if(opps.amount!=null && oldMapOpps!=null && opps.amount>=10000 && oldMapOpps.get(opps.id).amount
@parthipan0345
@parthipan0345 4 месяца назад
Can we do soql query directly ownerid owner.name from opportunity instead of using map and query on user. Right .?
Далее
Apex Triggers - 53 (Trigger Interview Scenario)
13:22
Salesforce Batch Apex Interview Questions
9:38
Просмотров 7 тыс.
TEAM SPIRIT: НОВЫЙ СОСТАВ. SEASON 24-25
01:31
Офицер, я всё объясню
01:00
Просмотров 2,4 млн
Apex Triggers - 51 (NTT Data Interview Scenario)
15:43
Просмотров 2,7 тыс.
Apex Triggers - 8 (Trigger Interview Question)
17:36
Просмотров 17 тыс.
NSURLProtocol: How I Stole an App For My Wedding
56:25
Salesforce Queueable Apex Interview Questions
5:15
Просмотров 2 тыс.
TEAM SPIRIT: НОВЫЙ СОСТАВ. SEASON 24-25
01:31