Table 5505370 M365 Entity Link
Table 5505370 M365 Entity Link
Fields
Entry No. (10
)
BigInteger
Primary (20
)
Boolean
Table Id (100
)
Integer
System Id (110
)
Guid
Link Table Id (120
)
Integer
Link Type (130
)
Enum "M365 Entity Link Type"
Methods
Unique
procedure Unique(): Enum "M365 Entity Link Type"
Returns the Entity Link Type Unique
Parameters / Return Value
Returns
Enum "M365 Entity Link Type"
Return value of type Enum “M365 Entity Link Type” Unique.
Multiple
procedure Multiple(): Enum "M365 Entity Link Type"
Returns the Entity Link Type Multiple
Parameters / Return Value
Returns
Enum "M365 Entity Link Type"
Return value of type Enum “M365 Entity Link Type” Multiple.
Create
procedure Create(fromTableId: Integer; fromSystemId: Guid; toTableId: Integer; toSystemId: Guid; linkType: Enum "M365 Entity Link Type"): Boolean
Create new Entity Link entries to connect two records.
Parameters / Return Value
fromTableId
Integer
Integer. The table id that corresponds to the link source.
fromSystemId
Guid
Guid. The system id that corresponds to the link source.
toTableId
Integer
Integer. The table id that corresponds to the link target.
toSystemId
Guid
Guid. The system id that corresponds to the link target.
linkType
Enum "M365 Entity Link Type"
Enum “M365 Entity Link Type”. Defines a Unique or Multiple link type.
Returns
Boolean
True if the link was created successfully, false otherwise.
Create
procedure Create(fromRecordVariant: Variant; toRecordVariant: Variant; linkType: Enum "M365 Entity Link Type"): Boolean
Create new Entity Link entries to connect two records.
Parameters / Return Value
fromRecordVariant
Variant
Variant. The record variant to the link source.
toRecordVariant
Variant
Variant. The record variant to the link target.
linkType
Enum "M365 Entity Link Type"
Enum “M365 Entity Link Type”. Defines a Unique or Multiple link type.
Returns
Boolean
True if the link was created successfully, false otherwise.
Create
procedure Create(fromRecordVariant: Variant; toRecordVariant: Variant): Boolean
Create new Entity Link entries to connect two records. The link type used is Unique.
Parameters / Return Value
fromRecordVariant
Variant
Variant. The record variant to the link source.
toRecordVariant
Variant
Variant. The record variant to the link target.
Returns
Boolean
True if the link was created successfully, false otherwise.
HasLink
procedure HasLink(forTableId: Integer; forSystemId: Guid; linkTableId: Integer): Boolean
Returns true if an Entity Link exists for the passed source and link table id.
Parameters / Return Value
forTableId
Integer
Integer. The table id that corresponds to the link source.
forSystemId
Guid
Guid. The system id that corresponds to the link source.
linkTableId
Integer
Integer. Specifies a target link table id to search for.
Returns
Boolean
True if a link exists, false otherwise.
HasLink
procedure HasLink(forTableId: Integer; forSystemId: Guid; forPrimary: Boolean): Boolean
Returns true if an Entity Link exists for the passed source and the link is the primary (linked from).
Parameters / Return Value
forTableId
Integer
Integer. The table id that corresponds to the link source.
forSystemId
Guid
Guid. The system id that corresponds to the link source.
forPrimary
Boolean
Boolean. Specifies that the link must be the primary link (linked from).
Returns
Boolean
True if a link exists, false otherwise.
HasLink
procedure HasLink(forTableId: Integer; forSystemId: Guid): Boolean
Returns true if an Entity Link exists for the passed source and any target record.
Parameters / Return Value
forTableId
Integer
Integer. The table id that corresponds to the link source.
forSystemId
Guid
Guid. The system id that corresponds to the link source.
Returns
Boolean
True if a link exists, false otherwise.
HasLink
procedure HasLink(forRecordVariant: Variant; linkTableId: Integer): Boolean
Returns true if an Entity Link exists for the passed source and the passed link table id.
Parameters / Return Value
forRecordVariant
Variant
Variant. The record variant to the link source.
linkTableId
Integer
Integer. Specifies a target link table id to search for.
Returns
Boolean
True if a link exists, false otherwise.
HasLink
procedure HasLink(forRecordVariant: Variant; forPrimary: Boolean): Boolean
Returns true if an Entity Link exists for the passed source and the link is the primary (linked from).
Parameters / Return Value
forRecordVariant
Variant
Variant. The record variant to the link source.
forPrimary
Boolean
Boolean. Specifies that the link must be the primary link (linked from).
Returns
Boolean
True if a link exists, false otherwise.
HasLink
procedure HasLink(forRecordVariant: Variant): Boolean
Returns true if an Entity Link exists for the passed source and any target record.
Parameters / Return Value
forRecordVariant
Variant
Variant. The record variant to the link source.
Returns
Boolean
True if a link exists, false otherwise.
GetLink
procedure GetLink(forTableId: Integer; forSystemId: Guid; linkTableId: Integer): Boolean
Returns true if an Entity Link exists for the passed source and link table id. GetLink() also filters and sets the instance to the found record.
Parameters / Return Value
forTableId
Integer
Integer. The table id that corresponds to the link source.
forSystemId
Guid
Guid. The system id that corresponds to the link source.
linkTableId
Integer
Integer. Specifies a target link table id to search for.
Returns
Boolean
True if a link is found, false otherwise.
GetLink
procedure GetLink(forTableId: Integer; forSystemId: Guid; forPrimary: Boolean): Boolean
Returns true if an Entity Link exists for the passed source and link table id. GetLink() also filters and sets the instance to the found record.
Parameters / Return Value
forTableId
Integer
Integer. The table id that corresponds to the link source.
forSystemId
Guid
Guid. The system id that corresponds to the link source.
forPrimary
Boolean
Boolean. Specifies that the link must be the primary link (linked from).
Returns
Boolean
True if a link is found, false otherwise.
GetLink
procedure GetLink(forTableId: Integer; forSystemId: Guid): Boolean
Returns true if an Entity Link exists for the passed source and link table id. GetLink() also filters and sets the instance to the found record.
Parameters / Return Value
forTableId
Integer
Integer. The table id that corresponds to the link source.
forSystemId
Guid
Guid. The system id that corresponds to the link source.
Returns
Boolean
True if a link is found, false otherwise.
GetLink
procedure GetLink(forRecordVariant: Variant; linkTableId: Integer): Boolean
Returns true if an Entity Link exists for the passed source and link table id. GetLink() also filters and sets the instance to the found record.
Parameters / Return Value
forRecordVariant
Variant
Variant. The record variant to the link source.
linkTableId
Integer
Integer. Specifies a target link table id to search for.
Returns
Boolean
True if a link is found, false otherwise.
GetLink
procedure GetLink(forRecordVariant: Variant; forPrimary: Boolean): Boolean
Returns true if an Entity Link exists for the passed source and link table id. GetLink() also filters and sets the instance to the found record.
Parameters / Return Value
forRecordVariant
Variant
Variant. The record variant to the link source.
forPrimary
Boolean
Boolean. Specifies that the link must be the primary link (linked from).
Returns
Boolean
True if a link is found, false otherwise.
GetLink
procedure GetLink(forRecordVariant: Variant): Boolean
Parameters / Return Value
forRecordVariant
Variant
Returns
Boolean
NextLink
procedure NextLink(): Boolean
Moves to the next link in case of Link Type Multiple.
Parameters / Return Value
Returns
Boolean
Returns true if a next link was found, false otherwise.
PreviousLink
procedure PreviousLink(): Boolean
Moves to the previous link in case of Link Type Multiple.
Parameters / Return Value
Returns
Boolean
Returns true if a previous link was found, false otherwise.
DeleteLink
procedure DeleteLink(): Boolean
Delete the currently active instance link. Requires that GetLink() was used before.
Parameters / Return Value
Returns
Boolean
Returns true if the link was deleted successfully, false otherwise.
DeleteAllLinks
procedure DeleteAllLinks(forTableId: Integer; forSystemId: Guid; linkTableId: Integer)
Delete all contained links matching the specified source and link table id.
Parameters / Return Value
forTableId
Integer
Integer. The table id that corresponds to the link source.
forSystemId
Guid
Guid. The system id that corresponds to the link source.
linkTableId
Integer
Integer. Specifies a target link table id to search for.
DeleteAllLinks
procedure DeleteAllLinks(forRecordVariant: Variant; linkTableId: Integer)
Delete all contained links matching the specified source and link table id.
Parameters / Return Value
forRecordVariant
Variant
Variant. The record variant to the link source.
linkTableId
Integer
Integer. Specifies a target link table id to search for.
DeleteAllLinks
procedure DeleteAllLinks(forRecordVariant: Variant)
Delete all contained links matching the specified source.
Parameters / Return Value
forRecordVariant
Variant
Variant. The record variant to the link source.
DeleteAllLinks
procedure DeleteAllLinks()
Delete all links matching the instance source values.
GetRecord
procedure GetRecord(var returnRecRef: RecordRef): Boolean
Returns the linked record corresponding to the current active source
Parameters / Return Value
returnRecRef
RecordRef
The returned record reference if any.
Returns
Boolean
Returns true if the record could be retrieved successfully, false otherwise.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.