Cloud Kicks は、標準オブジェクトの子オブジェクトからサマリーを計算するという新しい要件を受け取りました。チームはこれを宣言的に解決したいと考えています。
アプリビルダーが評価すべき 2 つの考慮事項は何ですか?
2つの回答を選択してください
正解:B,D
When Cloud Kicks needs to calculate summaries from child objects of a standard object declaratively, a few key considerations about master-detail relationships come into play. Master-detail relationships are critical in Salesforce when working with roll-up summary fields, which allow you to calculate values from child records.
* Option B: An object can have up to two master-detail relationships.
* Salesforce allows an object to have two master-detail relationships. This is important because if you want to aggregate child record data using roll-up summary fields, you need to have a master- detail relationship in place. Each master-detail relationship links a child object to a parent, and you can create roll-up summary fields on the parent object to summarize the child record data.
Reference: Master-Detail Relationship Overview
Option D: A value is required in all records of the lookup field prior to converting to a master-detail relationship.
One important consideration when converting a lookup relationship into a master-detail relationship is that the lookup field must contain values for all existing child records. This is because master-detail relationships have tighter coupling between parent and child records, and a child cannot exist without a parent in a master-detail scenario. Thus, the field cannot be null during the conversion process.
Reference: Convert a Lookup Relationship to a Master-Detail Relationship Option A: An app builder can convert a lookup relationship to a master-detail relationship if the above condition (that all lookup fields are populated) is met, so this option is incorrect.
Option C: Triggers are part of custom development using Apex, and the question specifies the solution should be declarative. Therefore, triggers would not be a relevant declarative tool for this scenario.