Skip to main content

Notifications

Announcements

No record found.

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

how to check the database to see the last time a web resource was modified?

Posted on by Microsoft Employee

I want to know Is there any way to see when last time my web resource was modified and I can get this modified information from  database.

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,506 Super User 2024 Season 1 on at
    how to check the database to see the last time a web resource was modified?

    It seems it's not possible because web resources don't have audit history. However, if your organization uses a version control tool like Git, you would be able to track the history.
  • lucafabbri365 Profile Picture
    lucafabbri365 10 on at
    how to check the database to see the last time a web resource was modified?
    Hello,
    I understand this is a pretty old post; however, I'll give it a try.
     
    Is it possible to know who modified a web resource over time (not just the last modification) ?
     
    Thank you. 
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to check the database to see the last time a web resource was modified?

    You have provided me javascript code which will work I think for modifications. I am not tried this code but can you explain in more details and specify that the of i add this code in a web resources for any entity such as opportunity than how I can check modifications in sql. Server database. As I mentioned that i want to check modifications in sql server database. Can you tell me procedure how to check modifications in sql server database after adding this JavaScript code in a web resources for any entity.

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: how to check the database to see the last time a web resource was modified?

    Hi, 

    All web resources are stored in the  "webresource" Entity. Let's say we have a web webresource named "mea_/Scripts/Opportunity/OpportunityForm.js". We can fetch the modifiedon and modifiedby fields by using the following request: 

    https://yourOrg.crm4.dynamics.com/api/data/v9.2/webresourceset?$select=modifiedon,name,displayname&$expand=modifiedby($select=fullname)&$filter=(name eq 'mea_/Scripts/Opportunity/OpportunityForm.js')

    Example:

    pastedimage1619208694187v1.png

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans