Home > @i2analyze/i2connect > services > IResult > getLink
services.IResult.getLink() method
Gets a previously added link record from the result, whose identifier is a string that you provided.
Signature:
getLink<TLinkType extends schema.ILinkType, TFromEnd extends records.ISeededResultEntityRecord | records.IResultEntityRecord, TToEnd extends records.ISeededResultEntityRecord | records.IResultEntityRecord>(type: TLinkType, id: records.ResultRecordId): records.IResultLinkRecord<TLinkType, TFromEnd, TToEnd, records.ResultRecordId> | undefined;
Introduced: API version 2.0
Type Parameters
Parameter | Type | Description |
---|---|---|
TLinkType | extends schema.ILinkType | The type of the link record. |
TFromEnd | extends records.ISeededResultEntityRecord | records.IResultEntityRecord | The type of the entity record at the "from" end of the link. |
TToEnd | extends records.ISeededResultEntityRecord | records.IResultEntityRecord | The type of the entity record at the "to" end of the link. |
Parameters
Parameter | Type | Description |
---|---|---|
type | TLinkType | The link type of the record. |
id | records.ResultRecordId | The identifier of the record. |
Returns:
records.IResultLinkRecord<TLinkType, TFromEnd, TToEnd, records.ResultRecordId> | undefined
The link record that was previously added to the result, or undefined
if it was not previously added.