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
J_HinderJ_Hinder 

Parent-Child Relationships

I was curious to know how you've gone about creating your custom object with a parent-child relationship? I was trying to do something similar, but cannot find an easy way to create the table that I need. Basically, I need to extend the capabilities of the current Product tab. I've created a new custom object for Categories, and within that Categories tab, I need to be able to create an unlimited amount of subcategories.

When I do this with an RDBMS, I tend to just create a table like this:

Category
-----------
Id
Parent_Id

If the Parent_Id in null, it's a top-level category, otherwise, the parent_Id is just an id from the same table. I thought I'd just be able to create a table and add a relationship to itself, but I do not see the Category object in my selections - only the standard Sforce Tabs. Is there something else I should be trying?
J_HinderJ_Hinder
Nevermind - just created a customer s-control for it.
Abhinav KantAbhinav Kant

can you please share solution regarding the parent-child realtion ship that you have implemented.

 

 

Thank you in advance.