Skip to Content

API Relationships

I have a Parent/Child relationship.

Using the API, If I call GetRelationshipMembership() and then iterate thru the RelationShipMembership collection, how do I know what Name to give the relationship? Is it Name or Name2?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 09:02 PM

    You define the Relationships in MDM Console.

    For each Relationship, you have relationship details.


    The details go as follows

    Name: Upsell

    Type: Parent/Child

    Name is: Parent

    Name2: Upsell For

    In the above example, the property value <b>Name is</b> dictates what the name of the relationship is.


    Example:<b>RelationshipInfo class</b>

    try {

    relationshipInfoArray = catalog.GetRelationships();

    if (relationshipInfoArray != null) {

    for (int i = 0; i < relationshipInfoArray.GetSize(); i++) {

    relationshipInfo = relationshipInfoArray.GetRelationshipInfoAt(i);




    } catch (StringException e) {



    Hope this helps;

    Please mark helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.