Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Answered

Web Template source is empty? How can I get all the code back?

(0) ShareShare
ReportReport
Posted on by 21

Hi

 

After my vacation I was making some changes to a form, and now all the Code in the Source to the Web Template is gone?

 

Is there anyway to get it back? 

It is gone on both the Create and Edit Forms for this entity.

2 seperate web templates. 

There is a lot of code gone... 40hours or so probably to recreate.

It only exists in DEV. not been moved to test and Production yet.

Categories:
  • Andreas Petersson Profile Picture
    21 on at
    Re: Web Template source is empty? How can I get all the code back?

    Hi thanks for the suggestion!

    I will check the backups if I can partially restore those tables

     

    Noone else have touched the portal tables, but there have been changes made to other parts of the CRM.

     

    I know of the issue where you can't find the code sometimes, but in this case the Portal have stopped working on the Quote page cause it isn't running the code anymore.

     

  • Verified answer
    Fubar Profile Picture
    7,960 Super User 2025 Season 1 on at
    Re: Web Template source is empty? How can I get all the code back?

    If it has actually gone, restore from backup there is a rolling backup for all instances (for non-production instances there is a shorter retention period so hopefully not outside that period)  - restore can be to another instance if you have updates made after the loss - or if you had Audit History turned on on the Entity and Field (by default that one I don't think is set on) you can open the fields audit and copy out the old contents.

     

    (i say actually gone above, because if you navigate from a Page Template often the content in its Web Template does not load and you need to refresh when on the Web Template record).

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >