A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as 100,000 Catalog Items. Both custom objects have a CurrencyIsoCode Text field that contains the currency code they should use. If a Catalog’s CurrencyIsoCode changes, all of its Catalog Items’ CurrencyIsoCodes should be changed as well. What should a developer use to update the CurrencIsoCodes on the Catalog Items when the Catalog’s CurrencyIsoCode changes?
A. An after insert trigger on Catalog that updates the Catalog Items if the Catalog’s CurrencyIsoCode is different.
B. A Database.Schedulable and Database.Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencyISoCode is different.
C. An after insert trigger on Catalog Item that updates the Catalog Items if the Catalog’s CurrencyIsoCode is different.
D. A Database.Schedulable and Database.Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencyISoCode is different.
Suggest answer: D
Reference:
No comments:
Please share to make the community better.