function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How do you create parent-child objects like sales order and it's line items?



i am new to SalesForce and i am trying to create a custom object for example sales order and it's detail line items? i think it requires two objects, but how do i link them and create a data structure like:


SalesOrder     Item#

00001           ProductA

00001           ProductB


all in the same window.


Thanks in advance for any help!

You create a master-detail relationship between the two objects then you add the child object as a "related list".

Thanks for your reply!


So, i would have to create for example: object "Sales Order"(Parent) and object "Item#"(Child), then go under "Sales Order">"Custom Fields & Relationships" and add "Item#" as a "Master-Detail Relationship"? how do i add it as a related list?


Thanks Again!

Once the relationship exists you add the related list in the layout of the parent object.

Can we do a merge into a word document ? Order + Order Line items ?