Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
'import/extensions': 'off',
'operator-linebreak': 'off',
indent: 'off',
'linebreak-style': 'off',
},
settings: {
'import/resolver': {
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ Client Credential Authentication
xrmtypesgen --url https://myorg.crm11.dynamics.com/ --tenent https://login.windows.net/myorg.onmicrosoft.com --entities "account,contact,lead" --output types --clientid myclientid --secret mysecret
```

Resource Owner Password Credentials Authentication - suitable for OnPrem. ADFS 2016+ preconfiguration required: https://www.youtube.com/watch?v=26OnuDSOZf4


```
xrmtypesgen --url https://myorg.crm11.dynamics.com/ --tenent https://adfs.example.com/adfs --entities "account,contact,lead" --output types --clientid myclientid --secret mysecret --username "user@name" --password password
```

#### **Arguments:**

```
Expand All @@ -62,6 +69,7 @@ Options:
--secret <secret> OAuth Client Secret
-t, --tenent <tenent> Azure Active Directory authority. e.g. https://login.windows.net/myorg.onmicrosoft.com
-c, --clientid <clientid> OAuth Client Id (default: "51f81489-12ee-4a9e-aaae-a2591f45987d")
-r, --resource <resoruce> For ROPC flow, when using password and secret, resource must match relying party identifier. Url will be used by default or override with this
-s, --solution <solution> Unique D365/Dataverse Solution Name
-e, --entities <entities> Comma seperated list of entities
-o, --output <output> Output path (default: "types")
Expand All @@ -72,6 +80,8 @@ e.g. xrmtypesgen --url https://myorg.crm11.dynamics.com/ --username username@myo
e.g. xrmtypesgen --url https://myorg.crm11.dynamics.com/ --username [email protected] --password password123 --tenent https://login.windows.net/myorg.onmicrosoft.com --entities account,contact,lead --output ./types

e.g. xrmtypesgen --url https://myorg.crm11.dynamics.com/ --tenent https://login.windows.net/myorg.onmicrosoft.com --entities "account,contact,lead" --output types --clientid myclientid --secret mysecret

e.g. XrmTypesGen --url https://myorg.crm11.dynamics.com/ --tenent https://adfs.example.com/adfs --entities "account,contact,lead" --output types --clientid myclientid --secret mysecret --username [email protected] --password password123 --resource https://myorg.crm11.dynamics.com/api/data/v9.1/
```

### Using your types
Expand Down
Loading