nerdexam
Salesforce

PDI · Question #170

Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field on the Case object to store the…

The correct answer is A. Use a trigger an the Case object. A trigger on the Case object is a robust solution to implement custom assignment logic that sets a support representative's name in a custom field based on the case origin.

Submitted by obi.ng· Apr 18, 2026Logic and Process Automation

Question

Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field on the Case object to store the support representative name. What is the best solution to assign the case to the appropriate support representative?

Options

  • AUse a trigger an the Case object.
  • BUse a formula field on the case object.
  • CUse a validation rule on the Case object.
  • DUse an Assignment Flow element.

How the community answered

(61 responses)
  • A
    82% (50)
  • B
    5% (3)
  • C
    10% (6)
  • D
    3% (2)

Why each option

A trigger on the Case object is a robust solution to implement custom assignment logic that sets a support representative's name in a custom field based on the case origin.

AUse a trigger an the Case object.Correct

An Apex trigger on the Case object provides the programmatic flexibility to implement complex custom logic to determine the appropriate support representative based on the case origin and update a custom field accordingly.

BUse a formula field on the case object.

A formula field is read-only and can only display calculated values; it cannot be used to update or assign values to other fields or records.

CUse a validation rule on the Case object.

A validation rule is designed to prevent records from being saved if they do not meet specified criteria and cannot be used to automatically assign values to fields.

DUse an Assignment Flow element.

The 'Assignment' element in Flow is used for assigning values to variables within the flow itself, not for automatically assigning records or updating record fields during save in the context described.

Concept tested: Automation Capabilities for Custom Logic

Source: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers.htm

Topics

#Case Assignment#Apex Triggers#Process Automation

Community Discussion

No community discussion yet for this question.

Full PDI Practice