Views:

Applies to Product - Power Pages


What’s happening?
The customer is seeking a method to programmatically sync a Power Pages site with the backend of the Power Platform application, as they are currently using a manual "Sync" button in the Power Pages Studio.


Reason:
The inquiry is based on the need for a programmatic solution to force sync a Power Pages site, which is not directly supported by the available APIs.


Resolution:

  • Upon review of the API documentation, it was determined that the only programmatic functions available are CRUD operations on tables.
  • There is no API call or method to force a site sync.
  • However, it was found that there is a way to restart the site using the API. The relevant documentation for this can be found in the "Websites - Restart Website" section of the Power Platform API documentation.
  • It is recommended to test the restart API to see if it works in the specific environment being used. If this does not resolve this, there are no other methods available for restarting the site or forcing a cache refresh.