Understanding Server Logic (Preview) in Power Pages


Power Pages has historically utilized client-side JavaScript, Liquid templates, and Power Automate for portal customization, facing challenges in security, server-side validation, and direct API integration. To address these issues, Microsoft launched Server Logic (Preview), which allows JavaScript to run on the Power Pages server rather than the user's browser, effectively converting the portal into a platform capable of hosting custom server APIs without requiring Azure Functions or external services. It operates in a sandboxed environment and can securely connect to both external and Dataverse APIs, ensuring consistent, secure logic execution without revealing sensitive information or dealing with CORS issues. The article provides a step-by-step guide to creating Server Logic, explaining how it allows for safe and efficient data operations, custom logic execution, secure service credentials management, and interaction with both Dataverse tables and external services through JavaScript functions that handle HTTP requests.


Article 5w

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time