Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 220 discussion

Actual exam question from Salesforce's CRT-450
Question #: 220
Topic #: 1
[All CRT-450 Questions]

A developer writes a single trigger on the Account object on the after insert and after update events. A workflow rule modifies a field every time an Account is created or updated.
How many times will the trigger fire if a new Account is inserted, assuming no other automation logic is implemented on the Account?

  • A. 8
  • B. 1
  • C. 4
  • D. 2
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
irina_735
1 year, 1 month ago
Selected Answer: D
Thigger fires the first time when accound is created (before insert), and the second time when WF Rule update record - trigger again (before update). You can check this with a test.
upvoted 2 times
irina_735
1 year, 1 month ago
*( after insert and after update)
upvoted 1 times
...
...
BrucePark
1 year, 3 months ago
I think the answer seems 3. No answer among the options.
upvoted 1 times
...
DonAldos
1 year, 7 months ago
Selected Answer: B
The trigger will fire only once if a new Account is inserted, even if a workflow rule modifies a field on the Account. This is because Salesforce uses a single transaction for the insert and the update triggered by the workflow rule, and the trigger only runs once per transaction.
upvoted 1 times
...
semio
1 year, 8 months ago
Selected Answer: B
1 the account has been created not updated
upvoted 1 times
...
semio
1 year, 8 months ago
1 the account has been created not updated
upvoted 2 times
...
NastyCaNasta
3 years, 5 months ago
why 2 not 1 ?
upvoted 2 times
ekanki
3 years, 2 months ago
2 times. Account created -> trigger fired and WF rule fired. Account updated by WF Rule -> trigger fired again.
upvoted 8 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...