Xrm.Device (Client API reference)

Applies to Dynamics 365 (online), version 9.0

Provides methods to use native device capabilities of mobile devices.

Method Description
captureAudio Invokes the device microphone to record audio.
captureImage Invokes the device camera to capture an image.
captureVideo Invokes the device camera to record video.
getBarcodeValue Invokes the device camera to scan the barcode information, such as a product number.
getCurrentPosition Returns the current location using the device geolocation capability.
pickFile Opens a dialog box to select files from your computer (web client) or mobile device (mobile clients).