編輯

共用方式為


Context

Provides all the properties and methods available in the Power Apps component framework.

FAQ: How can I access the record ID or table name?

Available for

Model-driven apps, canvas apps, & portals.

Properties

client

Provides access to the methods to determine which client is being used, whether the client is connected to server, and what kind of device is being used.

Type: Client

device

Provides methods to use native device capabilities.

Type: Device

events

Provides methods to call maker-defined Power Fx events that are configured in Power Apps Studio.

Type: Events

factory

Provides properties and methods to work with Popup services.

Type: Factory

formatting

Provides properties and methods to work with formatting.

Type: Formatting

mode

Provides access to methods to get the information about the current state of the code component.

Type: Mode

Provides navigation-related methods.

Type: Navigation

parameters

The data provided to the component. Structure defined by the component's manifest, corresponding to parameter and dataset nodes.

Type: IInputs

resources

The resource interface of context.resources

Provides access to the methods to get all the information about the resource files defined in the manifest.

Type: Resources

updatedProperties

An array of strings with values that changed since the last time it was passed and parameters. More information: updatedProperties

Type: string[]

userSettings

Provides information about the current user settings.

Type: UserSettings

utils

Provides a container for useful methods.

Type: Utility

webAPI

Provides properties and methods to use Web API to create and manage records.

Type: WebApi

Power Apps component framework API reference
Power Apps component framework overview