Power Apps Community Call Oct 21st: Charting Components, Custom Apps in Teams and an enhanced SharePoint web part

October brings us a Very special community call as we are going to unveil /announce a new community offering from Canviz.

Canviz has been working on Power Apps charting components for much of 2019 and have graciously decided to give them to the community. This component will include nine of the most commonly requested charting visuals (i.e. Scatter, solid gauge, Radar, Candlestick, funnel, and Gannt!). This month’s community call will then proceed with a walk through of a Power Apps Expense Application built with Oakdale (so fully integrated with Microsoft Teams) by Reza Dorrani. The demos will conclude with April Dunnam and Hugo Bernier walking us through an ENHANCED Power Apps SharePoint web part built by our very own community start and MVP Hugo Bernier!

 

Agenda

  • Introductions
  • Announcing Canviz Power Apps Charting Components
  • Project Oakdale My Expenses Power App
  • Power Apps Web Part
  • News and Community Contributions

 

When: October 21, 2020 8AM Pacific Time

Where: https://aka.ms/powerappscall-join

Our Presenters:

April Dunnam

Thank you for visiting my blog! My name is April Dunnam.  I’m a Microsoft Business Applications MVP and lead consultant/co-owner of ThriveFast, a Microsoft Partner located in Tulsa, Oklahoma.  I love using technologies like Office 365, SharePoint, Teams, Azure, Flow and PowerApps to help businesses create a thriving automated, collaborative environment. On top of blogging, I speak at local tech events and run the local PowerApps and Flow User Group.  When I’m not working I love going to karaoke or trivia night at the local brewery.

 

Hugo Bernier

Hugo is someone organizations call when their Office 365, SharePoint, and Dynamics 365 projects are doomed to fail and need help to get things back on track. As the self-proclaimed “World’s Laziest Developer” and a certified SCRUM Master, he teaches organizations how to successfully deliver their Microsoft 365 engagements while minimizing efforts and increased user adoption. Hugo has worked in Canada, the United States, Germany, Finland, Singapore, Hungary, France, and the United Kingdom. He is an active member of the SharePoint Development Community and has created several PnP reusable controls, property controls, and many sample web parts and extensions. Hugo is also a proud member of the Microsoft 365 Patterns and Practices (PnP) Team. The PnP team is a group of Microsoft employees and MVPs who coordinate the various open-source activities across GitHub and other social media channels, focused on helping the community on how to best use of Microsoft products, like Microsoft Teams, OneDrive, SharePoint or API layer like Microsoft Graph.

https://mvp.microsoft.com/en-us/PublicProfile/5003624

https://twitter.com/bernierh

https://github.com/hugoabernier

 

Reza Dorrani

Reza is a Microsoft Business Applications MVP & Principal consultant at Catapult Systems.   He is a Microsoft Power Apps & Microsoft Power Automate community dual super user.  He was awarded the Microsoft Flow All Star award by the community.  He is also the founder and leader of the Houston Power Apps and Power Automate User Group

 

Matt Schuessler


@mattschues

Matt has a passion for Power Apps, is an avid community member, not afraid to speak his mind about politics, loves collaboration technologies and is a Microsoft Power Platform Consultant specializing in Microsoft PowerApps and Power Automate at CANVIZ. At CANVIZ he is definitely a jack of all trades and has a proven track record on all the following the areas…including projects for Microsoft!

• Solution Architecture / Engineering
• Business Process Optimization
• IT Project Management
• Business Analysis
• Cloud Solutions
• Development
• Migration

 

Todd Baginski


A graduate from the University of Cincinnati Carl H. Lindner College of Business, Todd helps grow the business and leads the technical teams at Canviz. Todd is an 11-time Microsoft MVP with over 20 years of experience in software development. He consistently keeps Canviz on the cutting edge of web, mobile, desktop, and cloud technologies. He leads the technical teams at Canviz with a passion for sharing knowledge and attention to detail. In his free time, Todd gives back to his local community by coaching and growing youth sports teams.

Oct Power Apps User Group (virtual) Meetup: Getting Started with Power Apps and Creating Custom Connectors

 

For October, the Vancouver Power Apps User Group has two often requested topics.

  • How to get started (from bare metal) creating applications with Power Apps
  • 3 ways to create Power Apps custom connectors

 

How to get started (from bare metal) creating applications with Power Apps

This may seem like a strange topic, a year into running this user group but with the incredible growth of Power Apps there is a lot of people looking to onboard and even for companies that have been using Power Apps for a while it is a common need to create “sand box” tenants for doing things like testing, using admin features you typically don’t have access to or in the most common scenario: Training.

This session will start from creating a new Office Tenant, creating new Users in bulk and where to find training to get your entire company up to speed.

 

3 ways to create Power Apps custom connectors

 

This presentation Power Apps MVP Danish Naglekar, will walk us through 3 ways to create your custom connectors. First will create a custom connector from scratch, second using Postman Collection and last will be using Open API file. For more information about this session please see his video on this topic: https://powerusers.microsoft.com/t5/Webinars-and-Video-Gallery/3-ways-to-create-custom-connectors/td-p/697400

 

When: Thursday, October 22, 2020
6:00 PM to 8:00 PM PDT

Every 4th Thursday of the month

Add to calendar

 

Where: https://aka.ms/vancouverpug

(The meetup site can be found here: https://www.meetup.com/Vancouver-Power-Apps-User-Group )

 

 

 

Danish Naglekar


Danish is a full-stack developer, mostly working with D365 CE, Power Platform, Azure, AI, Machine Learning & IoT. He is passionate about technology and likes to learn new things as they are released. Most of his blogs are about his experiences in the technical space that he likes to share with the Dynamics community. He is a firm believer of open-source and community driven projects. He has created multiple open source projects; most renowned one is the “PCF Builder” an XrmToolbox plugin and VS Code extension to help speed the development of PCF controls.

Danish Naglekar | Power Maverick
MVP Business Applications

Blogs | LinkedIn | Twitter | GitHub | YouTube

 


Ali Sharifi
With a rich background in business applications Ali Sharifi came to Microsoft from the Microsoft partner channel, where as a Lead Solution Architect he delivered solutions based on Microsoft technologies to many customers in various industries form commercial to public sector. He is now Power Platform Technical Specialist in the Cloud and Enterprise team and lives the Microsoft mission to empower every person and every organization on the planet to achieve more. Microsoft Power Platform, Microsoft 365 and Dynamics 365 with underlying Azure cloud services can accelerate digital transformation of any organization to build tomorrow’s business and IT solutions.


Charles Sterling
Came to Microsoft from being a marine biologist working for United States National Marine Fisheries doing marine mammal research on the Bering Sea. He started out at Microsoft supporting Excel and moved through a couple of support teams to being an escalation engineer for Microsoft SQL Server. Taking his love for customers (and diving), Chuck moved to Australia as a product manager and developer evangelist for the .NET Framework. In 2008 he moved back to Redmond as a Visual Studio program manager then joined the Power Platform group focusing on Power BI and now continues his community passion and looking after the PowerApps influencers and MVPs.

Presentation skills Brown Bag in a virtual world

Pre-Covid I regularly held presentation skills brown bags

In those brown bags I had the attendees do different activities to help improve their presentation skills…but most of those assumed a physical interaction.

Last week I was asked to redeliver one of my brown bags…but in a VIRTUAL SETTING???!

Begging the question what the heck activities do I have them do to optimize for a virtual experience?

Looking at my last blog post on this topic let’s see if I could translate these to activities to a set of virtual activities….

Here is my first run at those activities!

  • Share the stage
    • Bring a friend!
    • Today
      • “Um master”
      • “Time master”


  • Be the story
    • Blur Background
    • Stock Background


  • Engage your audience
    • Physical Activity > Now becomes Camera Framing
    • Eye Contact Activity would use erasers in the room > Post its behind the screen


  • LOUDER equals better
    • Mute your audience


  • Emphasize appropriately
    • Voting


https://www.toastmasters.org/resources/online-meeting-tips

 

Power Apps Training FAQ (For Power Virtual Agents)

Table of Contents:

 

Where can I find Hands-on Labs?

For Power Apps we have: App in a Day. If you prefer a video of this you can find it here: App in a Day -Virtual edition. For Power Automate you there is Flow in a Day. For Power Administrators we have PowerApps Admin in a Day lab. If you wanted to integrate AI there is AI Builder In a Day, Object Detection with AI Builder, AI Builder Forms Processing. Additionally we have App in an hour and App in two hours. In the process in we have Integrating Application Insights with Power Apps (NEW) and Power Platform Tour in a Day (NEW /Rough Draft)

 

Where can I find Step-by-Step Guides?

You can find step by step guides here:

Where can I find Videos?

 

 

Where can I find Samples?

Microsoft Learning Paths?

In addition to the amazing community content, Microsoft has also created a set of learning paths to help you get up to speed with PowerApps and the rest of the Power Platform.  You can see the entire list of PowerApps learning content here and included below:

Creating a send-smile-component for Power Apps using Power BI and Application Insights

In process and still a draft…will remove this line when finished!

Early February we released an exciting new feature that enables you to add telemetry logging to your application using Application Insights.

That blog post can be found here:

https://powerapps.microsoft.com/en-us/blog/log-telemetry-for-your-apps-using-azure-application-insights/

This blog post is a walk through for getting that running specifically for creating a send a smile experience from your Power Apps.

You can also find a video of this walk through here: https://youtu.be/Kv8TOOeyj48

The walk through steps:

  1. Log into your Azure Subscription.

    While this walk through requires an Azure subscription, that subscription does not have to be in the same directory in your Power Apps tenant

  1. Create an Application Insights resource

  1. Name your resource instance. If you don’t already have a resource group you can create one.

  1. Create the resource Instance

  1. Copy the instrumentation Key

3. Create a new Power Apps application

4. Set the Instrumentation key

4. Navigate to Components

  1. Create a new component

  1. Resize the component screen

  1. Add a smile and frown Icon to the component.

  1. Select the frown icons and add the following code:

    Trace(“SendASmile”, TraceSeverity.Information,{ChucksappName : “Blog App”, Satvalue: “-1“, AppUser: User().FullName })

  1. Select the smiley face and insert the following code in on the OnSelect event

Trace(“SendASmile”, TraceSeverity.Information,{ChucksappName : “Blog App”, Satvalue: “1“, AppUser: User().FullName })

  1. Rename the component. You can do this by double clicking or right clicking on the component name > Rename

  1. Navigate back to Screens

  1. Navigate to Custom and insert our component SendASmile

  1. Go to file Save and Save your application.

  1. To find the play URL. Navigate to File > Settings and select Edit App Name

  1. Navigate to the Web Link. This is required as the telemetry is only collected in “play” mode rather than design mode.

  1. Run the application and click on your icons a couple of times

  1. Navigate back tot the Azure Portal and Application Insights.

In Application Insights choose the application you create

  1. In about 5 minutes you should be able to see your telemetry start coming through.

Exporting your Application Insights resource data to Power BI

Now that you have your Power Apps application connected to Application Insights you can configure Power BI to automatically import log data from Azure Monitor to take advantage of these additional visualizations.

  1. In your query window remove the limit line so the entire query is simply “traces”. Select Export > Export to Power BI. This will export the M Query that you can use in Power BI desktop.

  1. Open Power BI Desktop. Select Get Data > Blank Query > Connect

  1. In the Power Query Editor, select the Advanced Editor option. In the advanced editor erase the default query and paste in the query downloaded from the Export step above.

  1. Here is an image of this in a completed state. Select “Done”


  1. Transform the customDimensions column to JSON


  1. Select the customDeminsions column and select the columns you are interested. Note: you will almost certainly need to click “Load More” to see all the values.


  1. Select the customDeminsions column and select the columns you are intereste in.


  1. Remove Errors. As we expanded a column that doesn’t have all the values there will be errors in the dataset. If you do not do this you will get the error:

Failed to save modifications to the server. Error returned: ‘OLE DB or ODBC error: [Expression.Error] The parameter is expected to be of type Text.Type or Binary.Type.. ‘

  1. Change the data type of our SatValuue to whole number. Note: In later releases you will be able to pass in numbers from Power Apps and this step won’t be needed.


  1. Select Close and Apply. Note if you get errors from other columns you can either ignore them remove them by repeating the remove error step as shown above for the other columns.

  1. You can now work with this dataset as any other Power BI Dataset….In this case a card is displaying the average Satvalue. Note since this dynamically retrieving data from Application Insights you would likely want to use a DataFlow to persist the data over time.

Jan 17 Webinar: Integrating Bot Framework Skills with Power Virtual Agents

We are excited to announce that the modular and reusable conversation Bot Framework skills can be integrated with Power Virtual Agents.

January 17th 12:00pm PST Senior Program Pawan Taparia and Managers Murali Kumanduri from the Power Virtual Agents team will be hosting a live webinar to walk through what Bot Framework Skills are, how to integrate Bot Framework Skills with Power Virtual Agents and what was just updated with SDK version 4.7 launch.

If you are not familiar with Bot Framework Skills, they are re-usable conversational skill building-blocks covering conversational use-cases enabling you to add extensive functionality to a Bot within minutes. Skills include language understanding (LUIS) models, dialogs and integration code and delivered as source code enabling you to customize and extend as required. They can be a complex Virtual Assistant or perhaps an Enterprise Bot seeking to stitch together multiple bots within an organization.


 

When: January 17th 12PM PST

 

About our presenters:

Pawan Taparia

Senior Program Manager, Microsoft Corporation. Building intelligent conversational virtual agents using Power Virtual Agents. Creative and self-driven product manager with over 11 years’ of experience building and shipping consumer and enterprise technical solutions across retail, academia, healthcare & technology.
* Experienced leader with a track record of mentoring & guiding teams across disciplines to run a outcome driven development for delivering software solutions end-users and partners want
* Proven ability to innovate in all stacks of technology from embedded hardware, mobile app to cloud technology
* Strong execution and prioritization skills in delivering outcomes spanning product teams & divisions on time & with high quality
* Deep analytical skills with experience building data models to influence product direction


 

Getting your first Bot Running

 

I wanted to play with Power Virtual Agents Skills and needed to build a bot by hand and must be the most unlucky person in the world as I just seemed to hit issue after issue getting a bone stock SDK based Azure bot up and running with the Azure SDK

The issues I ran into the:

  1. The referenced solution on Git Hub fails to compile with the error: “The Current .NET SDK does not support targeting .NET Core 3.0”
  2. The bot solution on github fails to run with the error ‘Service EndPoint for CosmosDB is required. (Parameter ‘CosmosDBEndpoint’)’
  3. The bot solution on github fails to run with the exception from the TranscriptLoggerMiddleware()
  4. Despite being able to run and interact from the VS debugger, the Bot Framework Emulator refuses to bind to the local bot
  5. The Bot Framework Emulator refuses to bind to the published bot

 

 

 

 

Issues with the Answers I found:

  1. The referenced solution on Git Hub fails to compile with the error: “The Current .NET SDK does not support targeting .NET Core 3.0”

Resolution: Upgraded to using Visual Studio 2019

  1. The bot solution on github fails to run with the error ‘Service EndPoint for CosmosDB is required. (Parameter ‘CosmosDBEndpoint’)’

Resolution: Downloaded the sample from the Azure Portal rather than using the SDK.

Other samples do require this and directions can be found here: https://docs.microsoft.com/en-us/azure/bot-service/dotnet/bot-builder-dotnet-state-azure-cosmosdb?view=azure-bot-service-3.0

 

  1. The bot solution on github fails to run with the exception from the TranscriptLoggerMiddleware()

Resolution: Downloaded the sample from the Azure Portal rather than using the SDK.

  1. Despite being able to run and interact from the VS debugger, the Bot Framework Emulator refuses to bind to the local bot

Resolution: Supplied the Aplication ID and Password to the emulator from the JSON

 

  1. The Bot Framework Emulator refuses to bind to the published bot

Resolution: In simulator settings set the path to the ngrok network tunneling software.

Power Platform Sessions at Community Summit Barcelona

 

Working on a list of Microsoft sessions for Community Summit in Barcelona…please note this is still draft while I confirm the speakers!

 


 

April 9-12 the Power Platform product team will be in Barcelona for the Community Summit which brings users and partners of the Microsoft Business Applications platform together to learn, collaborate, and connect about Dynamics 365 and Power Platform Applications.

Free of sales and marketing gimmicks, this event is designed and curated by the community to share real learnings, actionable practices, and valuable lessons, delivered by the experts in the industry, so you can put your new bits of knowledge to use the very next day. Enjoy Barcelona in springtime, and get ready for 4 days of value-packed learning, connecting with like-minded peers, lunch meals and a nice welcome reception on the house, and the most fun you’ve had at a Community Summit ever.

To register please see: https://www.summiteurope.com/

 

Power BI Sessions

 

Building enterprise-grade models with Power BI Premium

Power BI Premium enables you to build comprehensive, enterprise-scale analytic solutions that deliver actionable insights through familiar data visualization tools such as Microsoft Power BI and Microsoft Excel. This session will dive deep into exciting, new and upcoming features including aggregations for big data to unlock petabyte-scale datasets that was not possible before! We will uncover how the trillion-row demo was built in Power BI on top of HDI Spark. The session will focus on performance, scalability, and application lifecycle management (ALM). Learn how to use Power BI Premium to create semantic models that are reused throughout large, enterprise organizations

 


Kasper de Jonge is Principal Program Manager on the Power BI team at Microsoft. Over the past decade at Microsoft, he has developed features for Power BI, Power Pivot, and other Analysis Services products, such as the Tabular model. He is frequently a speaker at conferences such as Microsoft Data Insight Summit, Ignite, SQLPASS, and SQLSaturday, and he is the creator of https://www.kasperonbi.com, one of the leading Microsoft Power BI blogs. He lives in the Netherlands.

 

Microsoft Power BI: Delivering business value with AI

Learn about the latest AI capabilities in Power BI and the upcoming roadmap with a focus on the latest changes in Q&A, AI visualizations, and AutoML. Learn how these innovations can deliver business value.


Justyna Lucznik


is a program manager in Power BI team focusing on AI features on the product and service. In this interview, she talks about AI features announced in Microsoft Ignite 2018 in Power BI Desktop, Power BI Service, and Power Query.

 

Working with Data in the Power Platform

Data is critical for the success of every organization. The Microsoft Power Platform (Power BI, PowerApps and Flow) provides a suite of tools to measure, act and automate processes around data. This foundational session gives you a 360-degree view for how to connect to data from any data source, shape, and size and get it ready to be used within all the Power Platform tools and experiences.

 


Miguel Llopis
works as a Program Manager in the Power Query team at Microsoft.
Power Query delivers market-leading Data Connectivity and Data Preparation capabilities for Power BI, Excel and Analysis Services.

 

Power Apps Sessions

 

What is new and exciting for Power Apps by Evan Chaki or Clay Wesener

This session will look at the large milestones just shipped and the future of the maker experience in the Business Applications platform, including details on what it means that Flow and canvas PowerApps.

Otherwise: Marco Rocca    PowerApps and Flow – Best practice for best support Power Automate

 


Evan Chaki

Leading organizations into profitable ventures through calculated strategies.
Expertise in strategic planning, client relationships, operational efficiency, project management and team achievement. Senior manager with a business and technology background.
Specialties: CRM, Business Process Automation, Architecture, Business Intelligence, Process Improvement

 

Introduction and Roadmap for AI Builder, the no-code AI experience of the Power Platform

AI Builder es la nueva funcionalidad de inteligencia artificial en PowerApps y Flow (Power Automate). Está será una sesión con numerosas demos donde podrás aprender cómo añadir inteligencia artificial a tus aplicaciones y procesos sin necesidad de tener ninguna noción de programación o data science.

La sesión será liderada por Joe Fernandez de Microsoft.


Joe Fernandez
Program Manager, Microsoft Joe is an amazing community advocate, single handedly answers most of the forum questions and a Program Manager on the AI Builder team at Microsoft.

 

 

Introducing Power Apps portals for external users

Learn how Microsoft Power Apps customers can create websites over data stored in Common Data Service that can be accessed by external users with a wide variety of identities including personal accounts, LinkedIn, and other Azure Active Directory organizations as well as allow anonymous browsing of content.

 

Dileep Singh

is a Senior Program Manager at Dynamics CRM. He has a wide scope and knowledge of Business solutions and applications. In his current position at Microsoft, Dileep is responsible for CRM Customer Service and portals. In addition to that, he has worked in past on a variety of areas like SharePoint Integration, Application infrastructure etc. A Bachelor Tech degree holder from NIT Allahabad, India and has been working in Microsoft from last 6 years.

 

Power Automate Sessions

 

Introducing UI flows to Power Automate

This session will introduce you to the next level of application automation with UI Flows. UI Flows Robotic process automation (RPA) feature within Microsoft Power Automate that helps you save time and effort. Enable anyone to automate manual business processes across all on-premises and cloud apps and services.

 


 

Stephen Siciliano

 is a Principal Group Program Manager at Microsoft. He believes that there is not a single User Interface that cannot be improved. His passion is to identify and execute on such improvements.  

Stephen enjoys being outdoors, hiking and running trails. He enjoys traveling and considers himself a transit enthusiast. 

 

Intelligent automation with Power Automate by Stephen Siciliano

 


 

Stephen Siciliano

 is a Principal Group Program Manager at Microsoft. He believes that there is not a single User Interface that cannot be improved. His passion is to identify and execute on such improvements.  

Stephen enjoys being outdoors, hiking and running trails. He enjoys traveling and considers himself a transit enthusiast. 

 

 

Power Virtual Agents Sessions

 

Getting Started with Power Virtual Agents by Charles Sterling

In this nearly all demo session we walk through how to get started with Power Virtual Agents, If you haven’t heard of Power Virtual Agents, they empower teams to easily create powerful bots using a guided, no-code graphical interface without the need for data scientists or developers. Power Virtual Agents addresses many of the major issues with bot building in the industry today. It eliminates the gap between the subject matter experts and the development teams building the bots, and the long latency between teams recognizing an issue and updating the bot to address it. It removes the complexity of exposing teams to the nuances of conversational AI and the need to write complex code.


Charles Sterling (Chuck) came to Microsoft from being a marine biologist working for United States National Marine Fisheries doing marine mammal research on the Bering Sea. He started out at Microsoft supporting Excel and moved through a couple of support teams to being an escalation engineer for Microsoft SQL Server. Taking his love for customers (and diving), Chuck moved to Australia as a product manager and developer evangelist for the .NET Framework. In 2008 he moved back to Redmond as a Visual Studio program manager then joined the Power Platform group focusing on Power BI and now continues his community passion and looking after the PowerApps influencers and MVPs.

 

 

 

Hands-On Labs

Creating your own bot with Power Virtual Agents

In this 2 hour hands on labs we will be build your very own bot! If you haven’t heard of Power Virtual Agents, they empower teams to easily create powerful bots using a guided, no-code graphical interface without the need for data scientists or developers. Power Virtual Agents addresses many of the major issues with bot building in the industry today. It eliminates the gap between the subject matter experts and the development teams building the bots, and the long latency between teams recognizing an issue and updating the bot to address it. It removes the complexity of exposing teams to the nuances of conversational AI and the need to write complex code.

 


Charles Sterling (Chuck) came to Microsoft from being a marine biologist working for United States National Marine Fisheries doing marine mammal research on the Bering Sea. He started out at Microsoft supporting Excel and moved through a couple of support teams to being an escalation engineer for Microsoft SQL Server. Taking his love for customers (and diving), Chuck moved to Australia as a product manager and developer evangelist for the .NET Framework. In 2008 he moved back to Redmond as a Visual Studio program manager then joined the Power Platform group focusing on Power BI and now continues his community passion and looking after the PowerApps influencers and MVPs.

 

 

Power Apps AI Builder in two Hours

In this 2 hour hands on lab you will get an introduction to the four major AI model types and walk through how to get forms processing working in your very own Power Apps application!


Joe Fernandez
Program Manager, Microsoft Joe is an amazing community advocate, single handedly answers most of the forum questions and a Program Manager on the AI Builder team at Microsoft.

 

 

Power BI & AI: Better Together

In this 2-hour hands on lab Justyna will walk the audience how to easily take your Power BI reports to the next level with the addition of AI.

 


Justyna Lucznik


is a program manager in Power BI team focusing on AI features on the product and service. In this interview, she talks about AI features announced in Microsoft Ignite 2018 in Power BI Desktop, Power BI Service, and Power Query.

 

AI Builder Object Detection Lab for Power Platform World Tour

Object detection

 

Object detection can be used to expedite or automate business processes in multiple industries. In the retail industry, it can be used to expedite the inventory management, allowing retail leaders to focus on on-site customer relationship building. In the manufacturing industry, technicians can use it to speed up the repair process to quickly pull out the manual of a piece of machinery for which the UPC/serial number isn’t standing out.

AI Builder object detection will allow companies of any size to add these capabilities for their own custom objects to their apps.

Object detection lets you count, locate, and identify selected objects within any image. You can use this model in PowerApps to extract information from pictures you take with the camera, or load into an app.

In this lab, we will build and train a detection model and build an app that uses the detection model to identify objects from available images.

Note: If you are building the first model in an environment, click on Explore Templates to get started.

 

Setup

Object detection maps objects to a Common Data Service Entity. To get started we need to create this entity.

Step 1. Log in to Power Apps.

Step 2. Navigate to “Data” and Select Entities and New Entity

 

Step 3. Create a new Entity.

Step 4. Add a field for inventory total named: aib_inventorytotal as type whole number

 

Step 5. Navigate to Data to add our products

Step 6. Add our Three Products

Green Tea Rose

Green Tea Cinnamon

Green Tea Mint

 

 

Step 7. Verify the data was entered into the entity

 

Exercise 1

In this exercise we will build and train the Object Detection model for three varieties of tea.

  1. In PowerApps maker, expand AI Builder and select Build. Select Object Detection.

 

  1. Name your model Green Tea Product Detection _Your name and
    Click create.

  1. Your screen should now look like the image here.

  1. Notice the progress indicator on the left. Those are the steps we will follow now to build and train our model.

  1. We are now going to define the objects we are tracking. Click on the Select object names.

 

  1. From the entity list, select Object Detection Product.

 

  1. Select the Name field and click Select field.

  1. Select the tea items and click Next.

 

  1. Notice the progress indicator has moved forward to the Add images step.

  1. Click add images.

     

    Images can be found here

  1. Select images from the set provided. You will need enough images to provide 15 samples for each type of tea we are tracking.

  1. Approve the upload of images. Click Upload images. After the upload completes, click Close.

 

  1. Click next to begin tagging the images.

  1. Select the first image to begin tagging.

  1. Hover over the image, near an item you wish to tag. A dotted-lined box should appear around the item. It has been detected as a single item that can be tagged.

  1. Click on the item and select the matching object name.

  1. If the pre-defined selector is not accurate, as in the below example, you can drag the container to draw it to accurately tag the item.

  1. Do this for each item in the image and for each image in your set. When you have tagged all of the images you uploaded click Done Tagging in the top right of the screen.

  1. Once you have completed tagging, you will get a summary of the tags. If you haven’t tagged enough for analysis, you will need to load and tag more examples.

 

  1. Once you have defined enough tags for training the model, you will be allowed to initiate the training. Click Next.

  1. Click Train.

  1. The training takes a few moments.

  1. Navigate to the saved model view and confirm your model has completed training.

  1. Select the model you just made.

  1. Select Quick test.

 

  1. Upload or drag and drop one of your test images to be analyzed.

     

  2. You will see the analysis and level of confidence for the match.

 

  1. Upload an image you know will not match. You will see the analysis and level of confidence for the match.

  1. Click close.
  2. Publish your model.

 

Exercise 2

We will now create a canvas app you can use for detecting the items that have been trained in our model. The product will be detected from the image and you will be able to adjust on-hand inventory for the item.

  1. Navigate to Apps, and select Create an app, then select Canvas. If asked, grant permission for the app to use your active CDS credentials.

  1. Select Blank app with Phone layout.

  1. On the maker canvas, select the Insert tab in the ribbon and expand AI Builder. Select Object detector to place this control on your app.

  1. Select the AI model you built.

  1. Resize the control to better use the space.

  1. Make sure to leave room for more items we will be placing soon.

  1. Play your app.

  1. Click on Detect.

  1. Choose one of your test images and click Open.

  1. The image will now be analyzed.

  1. Our model has detected each tea in the image.

  1. Exit the app player.

 

Bonus exercise- build out the data in your canvas app

 

  1. We will now select our data source. Select View from the ribbon and select Data Sources.

  1. Click + Add Data Source.

  1. Add the Common Data Service data source. Do not use Common Data Service (current environment).

  1. Select the Object Detection Products entity and click Connect.

  1. Close the Data pane.
  2. With Screen1 selected in the Tree view, navigate to the Insert ribbon tab, expand Gallery and select Blank vertical gallery.

  1. Rename the Gallery productGallery. You are re-naming the gallery so you can reference it from your formulas.

  1. Resize and move the gallery control to fit the available space on the screen, leaving some space at the bottom for using later.

  1. Select the edit icon from the gallery.

  1. Add a label to the gallery.

  1. Click edit again and add a Text input box to the gallery. Resize and place it to line up with the label we’ve already placed. We will be updating inventory counts in this text box.

  1. Rename the Text Input inventoryInput. You are renaming this control so you can reference it from your formulas.

  1. With focus on the Screen1 in the Tree view, click in the ribbon on Insert and select Button.

  1. Drag and move the button to the bottom of the screen, double click on it to edit the text. Rename it to Update.

  1. We will now add the user message to give the user confirmation their submission was accepted; we will define this logic later. With focus on Screen1, insert a label, drag it to the bottom of the screen.

 

  1. We will now add logic to the controls we’ve placed on the screen. Select the Gallery and replace the Items formula with the following.

    ‘Object Detection Products’

  1. Select the label in your gallery. Replace the Text formula with the following:

    ThisItem.Name

  1. Select inventoryInput and replace the formula for Default with the following:

    LookUp(‘Object Detection Products’,Name = ThisItem.Name).’Inventory Total’

  1. Select the other label (the one that shows at the bottom of the screen) and replace its text with the following:

    usermessage

  1. You’ll notice that area now looks blank. We will configure that message in our next step.

  1. Select the button control and replace the OnSelect with the following:

    ForAll(productGallery.AllItems,Patch(‘Object Detection Products’,LookUp(‘Object Detection Products’,Name=DisplayName),{‘Inventory Total’:Value(inventoryInput.Text)}));Set(usermessage,”Updated ” & CountRows(productGallery.AllItems) & ” items”)

  1. Play the app again.
  2. Click Detect.

  1. Select an image to evaluate.

  1. Update the quantity for the correct product and click Update.

  1. The bottom should show a message now.

AI Builder Forms Processing

This post was republished to Sterlings at 11:54:43 PM 11/21/2019

AI Builder Forms Processing

 

 

Account    Sterlings

 

Form processing

Form processing identifies the structure of your documents based on examples you provide to extract text from any matching form. Examples might include tax forms or invoices.

In this lab we will build and train a model for recognizing invoices. Then we will build a tablet app to show the detection in action and digitize the content.

Note: If you are building the first model in an environment, click on Explore Templates to get started.

 

Exercise 1

  1. From the left navigation expand AI Builder and select Build. Select Form Processing.

  1. Name your model. Because you are working in a shared environment make sure to include your name as part of the model name. This will make it easier to find later. Click create.

  1. Your screen should look like the following image. Select Add documents.

 

  1. Add the documents from the Train folder. You must have at least five documents to train the model.
  2. Confirm the selection and click Upload.

  3. Once your uploads are complete, select Analyze.

 

  1. Select the fields.

  2. Hover over the highlighted fields and confirm the fields that should be returned by the form when processing from our trained model.

  3. Once you have confirmed the fields, click Done.

  1. Train your model.

  1. Locate and open your saved model. If you need help finding it, type your name into the search box.

  1. Review the results of the trained model.

  1. Perform a test with the test invoice.
  2. Perform a test with another image or document.

  1. Publish the model.

 

 

Exercise 2

 

  1. Navigate to Apps and create a new Canvas App. Select Blank app with a tablet layout.

  1. Insert the Form Processor control from the AI Builder.

  1. Map it to your saved model.

  1. Drag and resize the control like the image below.

  1. Play your app.

  2. Click Analyze and add your test file.

  3. Your uploaded form will be analyzed

 

  1. You can see the mapped fields are recognized.

  1. Close the app player.

  2. Let’s take some of the data fields and place them on the screen for the user to review. Add three labels to the screen. Drag them to the right side of the screen and line them up like in the image below. Edit the text to “Invoice Number” , “Due Date” , and “Total”.

  3. Add Text input fields for each row and place them as below.

  4. Now we will map data from the analyzed document. Edit the default values for each field as follows:

     

Invoice Number

FormProcessor1.FormContent.Fields.INVOICE

Due Date

FormProcessor1.FormContent.Fields.’Due Date’

Total

FormProcessor1.FormContent.Fields.Total

 

  1. Play the app and add an invoice to be analyzed.