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 197 discussion

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

A developer has the following requirements:
* Calculate the total amount on an Order.
* Calculate the line amount for each Line Item based on quantity selected and price.
* Move Line Items to a different Order if a Line Item is not in stock.
Which relationship implementation supports these requirements?

  • A. Order has a Lookup field to Line Item and there can be many Line Items per Order.
  • B. Line Item has a Lookup field to Order and there can be many Line Items per Order.
  • C. Order has a Master-Detail field to Line Item and there can be many Line Items per Order.
  • D. Line Item has a Master-Detail field to Order and the Master can be re-parented.
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
mariamarlenepereira9
10 months, 2 weeks ago
I don't if it's just bad wording in D or if that is actually the key for the right answer, but it's not the 'Master' that is reparented when the Allow reparenting option is enabled; it's the child that is reparented.... "By default, records can’t be reparented in master-detail relationships. Administrators can, however, allow child records in master-detail relationships on custom objects to be reparented to different parent records by selecting the Allow reparenting option in the master-detail relationship definition." https://help.salesforce.com/s/articleView?id=sf.relationships_considerations.htm&type=5
upvoted 1 times
...
Shadow1100
11 months, 3 weeks ago
Selected Answer: D
Its D We need Order to be master here and theres a hint in question that they want line item to be changeable from 1 order to another hence reparentable
upvoted 2 times
...
Alf8
1 year, 11 months ago
you cannot reparenting standard object - according to the doc is only on custom objects https://developer.salesforce.com/forums/?id=906F0000000MHAGIA4
upvoted 1 times
irina_735
1 year, 2 months ago
There is nothing in the task about Line Item being a standard object, it may be custom object.
upvoted 2 times
...
...
zenchouu
2 years, 5 months ago
Selected Answer: B
by default MD can't be reparented so C is wrong D is quite unclear, i assume by the sentence, line items is meant to be the Master which makes no sense So i think B is correct, you can reparent with lookup
upvoted 1 times
zenchouu
2 years, 4 months ago
my bad, now i think answer D is correct, you can't create a Master field, its always a Detail field
upvoted 2 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 ...