Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Entity

Module for interacting with D365 entity records

Hierarchy

  • Entity

Index

Constructors

constructor

Methods

activate

  • activate(): Promise<void>
  • Activate the current record

    remarks

    Activate button on form will be used

    Returns Promise<void>

    Promise which resolves once activation is done

deactivate

  • deactivate(): Promise<void>
  • Deactivate the current record

    remarks

    Deactivate button on form will be used

    Returns Promise<void>

    Promise which resolves once deactivation is done

delete

  • delete(): Promise<void>
  • Delete the current record

    remarks

    Delete button on form will be used

    Returns Promise<void>

    Promise which resolves once deletion is done

getEntityName

  • getEntityName(): Promise<string>
  • Get the logical name of the currently opened record

    Returns Promise<string>

    Promise which resolves with the name

getEntityReference

  • getEntityReference(): Promise<LookupValue>
  • Get the entity reference of the currently opened record

    Returns Promise<LookupValue>

    Promise which resolves with the entity reference

getId

  • getId(): Promise<string>
  • Get the id of the currently opened record

    Returns Promise<string>

    Promise which resolves with the id

handleDuplicateCheck

  • handleDuplicateCheck(promises: Array<Promise<any>>, ignoreDuplicateCheck?: boolean): Promise<void>
  • Parameters

    • promises: Array<Promise<any>>
    • Default value ignoreDuplicateCheck: boolean = false

    Returns Promise<void>

noSubmit

  • noSubmit(): Promise<void>
  • Sets all attributes to submit mode none. This is useful if you don't want to save and just change the page. No prompt for unsaved data will open.

    deprecated

    Use Form.noSubmit instead

    Returns Promise<void>

    Promise which resolves once all attribute submit modes are set

refresh

  • refresh(saveData: boolean, ignoreDuplicateCheck?: boolean): Promise<void>
  • Refreshes the current form record

    Parameters

    • saveData: boolean

      Whether to save any unsubmitted data

    • Default value ignoreDuplicateCheck: boolean = false

    Returns Promise<void>

save

  • save(ignoreDuplicateCheck?: boolean): Promise<string>
  • Saves the record and returns the ID (both for quick create and "normal" create)

    Parameters

    • Default value ignoreDuplicateCheck: boolean = false

      Whether to automatically ignore duplicate check warnings

    Returns Promise<string>

    The id of the record

Generated using TypeDoc