Previous Topic: getLrelValuesNext Topic: removeLrelRelationships


createLrelRelationships

The following parameters apply to the createLrelRelationships method:

Parameter

Type

Description

SID

Integer

Identifies the session retrieved from logging in.

contextObject

String

Identifies the object on one side of the LREL.

LrelName

String

Identifies the Lrel Name as seen by contextObject.

addObectHandles

String[]

Identifies the handles of objects for the other side of the LREL relationships.

Description

Adds one or more many-to-many relationships. contextObject is one side of the LREL relation. The caller passes one or more object handles for the other side.

If a relationship already exists between the two objects, no change is made and the system continues to process the addObjectHandles array. If an invalid object handle is passed, the entire operation is canceled.

The following example shows how to add several assets to a contact’s environment:

createLrelRelationships(sid, ContactHandle, “cenv”,
 [“nr:655A043EDDB36D4F97524F2496B35E75”, “nr:755A043EDDB36D4F97524F2496B35E75”])

ContactHandle is a string handle to a contact, and 
“nr:655A043EDDB36D4F97524F2496B35E75” and
 “nr:755A043EDDB36D4F97524F2496B35E75” are Asset handles.

Returns

Nothing.