@microsoft/managed-apps
v0.6.3
Published
Client SDK for Microsoft Managed Apps
Readme
@microsoft/managed-apps
The client SDK for Microsoft managed apps. Import it in your app to access the app context, the signed-in user, the typed data client (Dataverse and connector operations), and developer telemetry.
The package has no root entry; import from one of the subpaths below. Usage and full API details are covered in the Microsoft managed apps documentation.
@microsoft/managed-apps/app
getContext, setConfig, IContext, IConfig.
@microsoft/managed-apps/auth
getUser, IUser.
getUser() returns the signed-in user's fullName, objectId, and tenantId:
import { getUser } from '@microsoft/managed-apps/auth';
const user = await getUser();
// {
// fullName: 'Alex Example',
// objectId: '11111111-1111-4111-8111-111111111111',
// tenantId: '22222222-2222-4222-8222-222222222222'
// }@microsoft/managed-apps/data
getClient, DataClient, IOperationOptions, IOperationResult, serializeMultiSelectPicklistFields, deserializeMultiSelectPicklistFields.
@microsoft/managed-apps/telemetry
initializeLogger, ILogger, and the Metric types.
