| PortalAddRemoveMultipleObjectValues Method |
This method associates or removes an instance of an object with an instance of the same or different object through a relationship. It provides one-many, many-many and many-one support.
Namespace: PortalServiceC#
public long AddRemoveMultipleObjectValues( RelationshipData[] arrRelation, ref string failedIds, out string error )
Parameters
- arrRelation
- Type: RelationshipData
[in]Array of the RelationshipData structure that contains information about object instances between which an association must be established. - failedIds
- Type: SystemString
[ref]Object instance IDs that failed to be associated or removed with the related object. - error
- Type: SystemString
[out]Error message returned when the addition / removal of related records fails.
Return Value
Type: Int64This method returns 0 if the operation is successful and a negative value if the operation fails.