web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Web Template source is...
Power Pages
Unanswered

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:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

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

  • Andreas Petersson Profile Picture
    21 on at

    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.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard