Skip to main content

Posts

Power Apps component framework (PCF) – Beginner guide

Topics to be covered in this article: What is PCF? Pre-requisites Build a simple PCF control. Run and Debug in Browser Packaging PCF control to a Solution Lets get started and dive in to the details. What is PCF? The PowerApps Component Framework (PCF) is a Microsoft framework for building custom components in PowerApps. With PCF we can provide enhanced user experience for the users to work with data on forms, views, and dashboards For example, a basic ‘Whole Number’ field can be turned in to a Slider control where user can slide to set the value rather than typing or a basic 'Text' field can be turned into a QR code based upon data present in it. Couple of important points consider: PCF works only on Unified Interface and not on the web client PCF doesn’t work for on-premises instances Lookup type fields are not supported. Pre-requisites: Microsoft PowerApps Command Line Interface. Microsoft Power Apps CLI is a simple, single-stop developer command-line interface that empowers...

Dynamics 365 CRM retrieve data using JavaScript

What is OData in Dynamics CRM? Open Data Protocol ( OData ) is a standard protocol for consuming data exposed by Dynamics . OData is a Representational State Transfer ( REST ) based protocol. It can be applied to all types of technologies, including JavaScript Object Notation ( JSON ). To retrieve single record data using JavaScript function   CheckPrimaryContactId ( executionContext ) {      formContext  =  executionContext . getFormContext ();      var   primarycontactid  =  formContext . data . entity . attributes . get ( "primarycontactid" );      if  ( primarycontactid . getValue () !=  null ) {          entityId  =  primarycontactid . getValue ()[ 0 ]. id . slice ( 1 , - 1 );          entityName  =  primarycontactid . getValue ()[ 0 ]. entityType ;  ...