@albanian-xrm/apm-types
v0.1.2
Published
Microsoft.Apm (App profile manager) types from the community (us).
Maintainers
Readme
@albanian-xrm/apm-types 
Microsoft.Apm (App profile manager) types from the community (us).
The app profile manager JavaScript API Reference includes methods and properties to manage tabs and sessions in Customer Service workspace.
Read more about App profile manager JavaScript API on the Microsoft Docs here.
To use the types install @albanian-xrm/apm-types and add the following to your tsconfig.json:
"compilerOptions": {
"types": [
"@albanian-xrm/apm-types"
]
}You will get the Intellisense in your IDE with the global Microsoft.Apm types.
* Note! Your scripts might get executed outside of a Multi-session enabled app. Don't forget to check that Microsoft.Apm is available in your event handler.
function onLoad(context){
if(!Microsoft || !Microsoft.Apm){
return;
}
Microsoft.Apm.getFocusedSession.updateContext({
FormType: context.getFormContext().ui.getFormType()
});
}