Forum Discussion

NidhiMangtani's avatar
NidhiMangtani
Contributor III
3 years ago

Specifying SiblingSortOrder while adding relationship through extensibility rule

Hello, Can we figure out sibling sort order for existing members and add the new members at a specific position in hierarchy through extensibility rule? Any samples would be helpful.
  • NidhiMangtani's avatar
    3 years ago

    Dim relationshipPositionOptions As New RelationshipPositionOptions
    relationshipPositionOptions.SiblingId = sSiblingID
    relationshipPositionOptions.MovementType = RelationshipMovementType.InsertBeforeSibling

    BRApi.Finance.MemberAdmin.SaveRelationshipInfo(si, relationshipInfo, relationshipPositionOptions)

    Specifying movementtype worked.

    No assistance needed.