Showing posts from April, 2020

Gotchas for PCF Code Components in Canvas Apps

PCF Code Components allow developers to create their own custom interfaces utilizing Typescript and/or React. To learn more about the PCF Component Framework check out this article . Building these controls has been great in Model app but only recently could we also start re-using them in our Canvas apps. If you want to learn more about how to add your PCF Code component to a Canvas App check out this article from Microsoft . Now that these controls can be utilized within Canvas Apps there are a few things to watch out for. Some of these are bugs that should be fixed when this all comes out of Preview and into General Availability. ControlManifest.Input.xml The ControlManifest.Input.xml file is where you define your component information and all the properties associated with it. Below are some gotcha that will cause you errors when attempting to deploy your component into a Canvas app. Be Careful of XML Escape Characters When defining your component it’s important to add desc

PowerApps Calendar Control

This calendar control was built off of React Big Calendar . The calendar can be used to display events with or without related resources. This control has been designed to work in both Canvas and Model apps. Because of the differences in those types of applications there are some differences in how you utilize them in each app. Canvas If you want to utilize resources in Canvas you will need to use a collection as the data source. If just showing events with no resources a simple CDS dataset can be used. There are output parameters that are defined in the app which will pass back data when an item is clicked on, an empty time span is selected, or the calendar range has been updated. These output parameters will allow you to create your own functionality in the Canvas app for updated or creating records. Model Clicking on and event will open the record for editing. Clicking on an empty timespan will open a new record form, and will pass in the start, end, and resource field d