-
Notifications
You must be signed in to change notification settings - Fork 3
WebResource Metatagging
To get the most out of the processes page with dependencies, you must help Data Model Viewer (DMV) understand what entities scripts are used for. This is achieved by adding a "tag" to the description field of the JS files containing the entity it is used for.
We've created a script you can run in your project regardless of framework. Only assumtion is that you don't have multiple src folders for your scripts.
First you must download the addWebResourceDescription script from the repo folder Scripts.
The script is a file-based .NET 10 app, written in C#.
Place the script anywhere, however we recommend placing it inside your repo close to the code itself.
The script uses DefaultAzureCredential which will attempt to authenticate to your Dataverse environment via Azure CLI or your Visual Studio profile.
The script is run via dotnet run addWebResourceDescription.cs <folder-path> [dataverse-url]
For a the following folder structure, the upcoming command would be used (assuming you stand in the scripts/ directory).
root/
├── scripts/
└── addWebResourceDescription.cs
└── src/
└── Account/
└── ...
dotnet run ./addWebResourceDescription.cs ./../src my-dataverse.crm4.dynamics.com