@cathalnoonan/xrm-webresource-uploader
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

XRM WebResource Uploader

Function to deploy web resources to the specified solution in Dynamics 365 / Power Platform from node js

Example

const path = require('path');
const { uploadWebResources, XrmClientSecretAuthService } = require('@cathalnoonan/xrm-webresource-uploader');

(async function () {

    await uploadWebResources({
        apiVersion: 'v9.1',
        deployFolder: path.resolve(__dirname, 'dist'),
        authService: new XrmClientSecretAuthService({
            clientId: '<your client id>',
            clientSecret: '<your client secret>',
            tenantId: '<your tenant id>',
            environmentUrl: 'https://your-environment.crm4.dynamics.com',
            tokenTolerance: 60
        }),
        soltionName: '<your soultion unique name>',
        includeSourceMaps: true,
    })
}()) 

Package Sidebar

Install

npm i @cathalnoonan/xrm-webresource-uploader

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

68.4 kB

Total Files

25

Last publish

Collaborators

  • cathalnoonan