Feature Rich
Rapid Application Development
Helping you or your customers
Manage their Business

All Commands All Data Adjustment Commands

REL_ADD

This command allows you to add one or more relationships between objects.

This command has two modes.

  1. Supply the IDs of the parent and child objects you want to create the relationship between.
  2. Supply the Parent ID of the Object to link from or to and a key value for part 1 of an object in the specified list.

Adding relationships via a Key value allows you to link to or from an object without knowing its ID. You just need to know the value in the first part of the object. You can use a Key lookup for the parent or child end of the relationship.

Number Name Default Type Description
1 parent_id Current Object ID String Parent Object ID or comma separated List of IDs enclosed in brackets.
2 rel_type 0 Integer

Relationship Type ID

This should be positive but if it is negative then the parent and child IDs will be swapped before the relationship is added.

3 rel_level 1000 Integer

Relationship Level

Use 0 for the default relationship level.

Use -1 to add a relationship with the default relationship level but only if it hadn't previously been added.
In this case, if the relationship had been added and then removed then it will not be reinstated.

4 child_id 0 String Child Object ID or comma separated List of IDs enclosed in brackets.
- parent_key String Parent Key value. See explanation above for adding relationships via a key.
- child_key String Child Key value. See explanation above for adding relationships via a key.
to add a Comment.