The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.

Forum Discussion

NidhiMangtani's avatar
NidhiMangtani
Contributor III
3 years ago
Solved

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.