How to Detect that a PCF is Running Inside a Canvas App / Custom Page


This article discusses how to detect if a Power Apps Component Framework (PCF) is running inside a Canvas App or Custom Page. The author suggests adding a property to the manifest file that can detect the context. By using the "pfx-default-value" property, the PCF can determine if it is being used in a Canvas App or Custom Page. The author provides code examples and screenshots to demonstrate the process. This method is supported and provides a reliable way to determine the context of the PCF.


Article 2m

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