PowerApps lets you create, customize and run mobile apps with very less code. By using Dynamics 365 Connectors we can create mobile apps which can be shared within an organization. Users can run these apps in web browser and on their mobile devices.
In this blog, we will explore how to set null value in a CRM date field using patch function through PowerApps.
Scenario – There can be possibility wherein users may mistakenly enter date information in a wrong record via PowerApps and they may need to clear that value at a later stage.
In order to fix the above scenario we would suggest following steps:
Step 1: Add Date (“Birthday”) field on EditScreen from the data source as shown in the below screenshot.
Step 2: Set the advanced properties of DataCardValue.
- If we want to keep default date placeholder empty instead of some random date, then keep “InputTextPlaceHolder” property blank.
- Set the “IsEditable” property to true to edit or change the date.
For your reference see the below screenshot.
Step 3: Now set the formula on “OnSelect” property of “Submit” button.
contactid = BrowseGallery1.Selected.contactid
Step 4: Make sure in App settings, the “Formula-level error management” under “Experimental features” should be enabled as shown in below screenshot.
Note: These features might change, break or disappear with time, depending on the updates from Microsoft PowerApps team.
This way, we can set null date in CRM using patch function from PowerApps.