Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Logs for Javascript

Posted on by 120
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.
  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Logs for Javascript

    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.

    If found helpful, Please mark my answer verified.

  • Suggested answer
    Saad Kabarousse Profile Picture
    Saad Kabarousse 732 on at
    RE: Logs for Javascript

    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 :)

  • takiyan Profile Picture
    takiyan on at
    RE: Logs for Javascript

    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

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/script-jscript-web-resources

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/customize/create-solution

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans