Click or drag to resize

ItemfetchRelationships Method (String, String, String)

Fetches relationships of specified type from the server and sets them on the item. Specified select list and order are set on the request AML.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 14.0.20.39432
Syntax
public Item fetchRelationships(
	string relationshipTypeName,
	string selectList,
	string orderBy
)

Parameters

relationshipTypeName
Type: SystemString
Name of the relationship type.
selectList
Type: SystemString
Select list that is set on attribute 'select' of the request (see "Programmer's Guide" for more info on format of select list).
orderBy
Type: SystemString
The value is set on attribute 'order_by' of the request (see "Programmer's Guide" for more info on format of 'order_by').

Return Value

Type: Item
If server request failed the method returns an "error" item; otherwise it returns this.
Exceptions
ExceptionCondition
Exception
  • The instance doesn't represent a single item.
  • Item's ID is not set.
ArgumentExceptionRelationship type either null or empty.
Remarks
The method performs a server request. If relationships of the specified type already exist on this.node they are removed and replaced by the relationships fetched from the server.
See Also