Here are the steps:
Creating an app using Dynamics 365 as data source
Create connection and generate a default app
- In PowerApps, Select New >> “Start with your data” >> Dynamics 365 , as shown in the screenshot below.
- Create a new connection to your CRM Online organisation. In my case, I already have connections, as shown in the screenshot. Click on the dataset for your organisation (in my case it is HPE).
- Select Contacts from the dropdown and click Connect, as shown in the screenshot.
- PowerApps will create an app. The app will have 3 Screens:
- BrowseScreen1 (Home Page with a list of the contacts and a search box)
- DetailScreen1 (Displays the details of the selected item on BrowseScreen1)
- EditScreen1 (Opens the selected record/new record in edit mode)
Update search and sort conditions on the browse screen
- On BrowseScreen1, select the browse gallery. the editor will display the Items properties.
- Change the value of the “Items” property to SortByColumns(Search(Contacts, TextSearchBox1.Text, "fullname"), "lastname", If(SortDescending1, Descending, Ascending)). It will change the search criteria to “fullname” and sort the records by “lastname”.
Select fields to display in the gallery
- Select the fields in the first item of the gallery and choose the CRM field you would like to display in that control, as shown in the screenshot below.
- Choose the other fields to display in the gallery. The image control on the gallery is already set to display the entityimage of the contact.
Select the fields on Detail and Edit screen
- Select DetailScreen1 and then select Data sources from the View Menu. It will display the Data window as shown in the screenshot below.
- Select DetailForm1. It will display all the available fields in the Data pane as shown in the screenshot. Click on the purple eye in the options pane to add or remove the fields on the form.
Change the theme of the app
Save and Share the app
-
Save the app by providing the name of the app. You have an option to save the app on the cloud or on the local machine.
- Share your app with your colleagues by selecting Share this app.
Testing the App
I am testing this app on iPhone 7S. To run PowerApps on your mobile device, install PowerApps from the app store.- Logon to the PowerApps and choose your app.
- The app will display the browse screen.
- Select the record to view the detail screen. All the fields are disabled on this screen.
- Click on the edit icon to edit the record.
- Click on Change Picture to upload a picture. On iPhone, you will get the following options.
- Take a new picture/select an existing picture and press save.
- Have a look at the browse screen. It should display a picture on the edited record.
Conclusion
In general, I think PowerApps is great to build something quick instead of spending months to go live, but performance must be improved to make it usable in the real world.Improvements
There are a few improvements in the latest version of PowerApps.- Image control can display CRM entity images. This was not working a year ago.
- Image control can access iPhone camera. In my last attempt, I had to add the camera control to take the picture.
- The performance is better than a year ago.
Issues
Photos take a long time to load. On the browser screen, the data fields load very quickly but photos appear after a few minutes.
Users can’t control the orientation of the photos selected in the image control. Some photos get loaded with the wrong orientation. I have read on the PowerApps community forum that the PowerApps team is working on it.
CRM connector does not have an option to retrieve specific columns instead of all the columns.
Good Post. Avail Microsoft Dynamics Web Development Service that transform your business with customized business solutions.
ReplyDelete