Salesforce Certified Platform App Builder — Question 321
Universal Containers has a new custom object for Invoices that includes an Invoice Number field. Before the Invoice object can be used, invoices will be migrated from an external system maintaining their current Invoice Number. After the migration, each new Invoice created in Salesforce must have a unique Invoice Number.
How should the app builder configure the Invoice Number field?
Answer options
- A. Create a Text field, then change it to AutoNumber after the migration.
- B. Create an AutoNumber field and migrate the Invoices in Invoice Number order.
- C. Create a Text field and mark it as a unique external ID field.
- D. Create a Text field for the original Invoice Number and an AutoNumber field for the Salesforce Invoice Number.
Correct answer: A
Explanation
The correct answer is A because it allows for the migration of existing Invoice Numbers while ensuring that the field type can later be changed to AutoNumber, guaranteeing uniqueness for any newly created invoices. Option B is incorrect as migrating to an AutoNumber field does not support existing values. Option C does not achieve the requirement of uniqueness for new entries, and Option D unnecessarily complicates the setup by introducing two fields instead of one.