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


Integer


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.


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.


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.


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.


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.


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.


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.


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.


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.


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.


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.


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.


procedure GetLink(forRecordVariant: Variant): Boolean

Parameters / Return Value

  • forRecordVariant Variant

  • Returns Boolean


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.


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.


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.


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.


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.


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.


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.



EOS Labs -