• Abhinav Kant
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
I have been browsing the documentation looking for a built-in method to get the XML for queryResult, but I can't see one.  Is there an example of how to get the XML?
  • September 19, 2006
  • Like
  • 0
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?