Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Attribute

Module for interacting with D365 Attributes

Hierarchy

  • Attribute

Index

Constructors

constructor

Methods

getRequiredLevel

  • getRequiredLevel(attributeName: string): Promise<RequirementLevel>
  • Gets the required level of the specified attribute

    Parameters

    • attributeName: string

      Name of the attribute

    Returns Promise<RequirementLevel>

    Required level of the specified attribute

getValue

  • getValue(attributeName: string): Promise<any>
  • Gets the value of the specified attribute

    Parameters

    • attributeName: string

      Name of the attribute

    Returns Promise<any>

    Value of the specified attribute

setValue

  • setValue(attributeName: string, value: any, settings?: number | SetValueSettings): Promise<void>
  • Sets the value of the specified attribute

    Parameters

    • attributeName: string

      Name of the attribute

    • value: any

      Value to set

    • Optional settings: number | SetValueSettings

      Settings defining time to wait (ms) after setting value for letting onChange events occur and whether to also write into hidden and readonly fields.

    Returns Promise<void>

    Returns promise that resolves once value is set and settleTime is over

setValues

  • Sets multiple attribute values at once

    example

    XrmUiTest.Attribute.setValues({ name: "Account Name", creditlimit: 50000, customertypecode: 1, transactioncurrencyid: [{entityType: "transactioncurrency", name: "EURO", id: "someId"}] })

    Parameters

    • values: {}

      JS object with keys matching the attribute names and values containing the values to set

      • [key: string]: any
    • Optional settings: number | SetValueSettings

      Settings defining time to wait (ms) after setting value for letting onChange events occur and whether to also write into hidden and readonly fields.

    Returns Promise<void>

    Returns promise that resolves once values are set and settleTime is over

Generated using TypeDoc