A PCF to use barcode scanner control to populate lookup field in Dynamics 365 mobile app.
- A simple PCF control that reads the barcode and search in Dataverse with the predefined column and populate the values
- Configuration should be passed as JSON object which is described below
Please download the releases here
Configuration can be passed to the control via control properties as shown below.
{ "entityName": "account", "fieldtoSearch": "accountnumber", "nameColumn": "name", "showNew": false, "defaultviewId": "00000000-0000-0000-00aa-000010001001" }
- entityName : The schema name for the entity to be searched - fieldtoSearch : The field to be searched against with value from barcode - nameColumn : primary name column of the entity being searched - showNew : show new button to be visible lookup control in case the barcode is not found - defaultviewId : default view id to be displayed in the lookup control in case barcode is not found
Thanks to DavidXrm's LookupDropdown for the inspiration
Thanks to Statelyai's Xstate for the wonderful State machines