I want to manage the logs for the javascript changes. If any ony changes in the javascript file log will be maintain. how to achieve this in Dynamic 365.
I want to manage the logs for the javascript changes. If any ony changes in the javascript file log will be maintain. how to achieve this in Dynamic 365.
Hi,
You can write plugin on Entity - WebResource and message - update
So whenever anyone do changes in any web resource bet it JS, image. You may filter to log the details only when JS web resource changed.
You might need to create custom entity to track the logs.
Hello my friend,
Any web ressource (Javascript, Html, Css etc...) is a record inside the WebResource Entity.
Any record in that Entity or in any other one has two fields ModifiedBy and ModifiedOn.
So to respond to this problem
1- you can create an entity that has 5 fields : ModifiedOb ModifiedBy, WebRessourceId , Web ressource Name, WebRessourceContent (This field contains the Content of any webressource). these 5 fields will be filled from the WebRessource Entity.
2- Register a Plugin PreOperation OnUpdate on the WebRessource Entity that will retrieve the 5 fields values from teh Concerned Web ressource and store them into Your new entity.
This way every time there will be an update on a web ressource a new line will be added to the Log Entity.
i Hope this will help :)
In Dynamics 365, JavaScript is managed as a part of Web resource, and web resource is imported as Dynamics solution. If you want to track the change of JavaScript in Web resource, you can manage the solution history in Advance Settings > Settings Solutions
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156