Skip to main content
Microsoft logo
Power Apps
    • AI Builder
    • Automate processes
    • Azure + Power Apps
    • Build apps
    • Connect data
    • Portals
  • Pricing
    • Overview
    • Become a Partner
    • Find a Partner
    • Find partner offers
    • Partner GTM Resources
    • Blog
    • Customer stories
    • Developer Plan
    • Documentation
    • For IT Leaders
    • Roadmap
    • Self-paced learning
    • Webinars
    • App development topics
    • Overview
    • Issues
    • Give feedback
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • User groups
    • Register
    • ·
    • Sign in
    • ·
    • Help
    Go To
    • Power Apps Community
    • Welcome to the Community!
    • News & Announcements
    • Get Help with Power Apps
    • Building Power Apps
    • Microsoft Dataverse
    • AI Builder
    • Power Apps Governance and Administering
    • Power Apps Pro Dev & ISV
    • Power Apps Portals
    • Connector Development
    • Power Query
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Community Blog
    • Power Apps Community Blog
    • Galleries
    • Community Connections & How-To Videos
    • Community App Samples
    • Webinars and Video Gallery
    • Canvas Apps Components Samples
    • Kid Zone
    • Business Value Webinars and Video Gallery
    • Emergency Response Gallery
    • 2021 MSBizAppsSummit Gallery
    • 2020 MSBizAppsSummit Gallery
    • 2019 MSBizAppsSummit Gallery
    • Ideas
    • Power Apps Ideas
    • Community Engagement
    • Demo Extravaganza 2021
    • Demo Extravaganza - Components 2021
    • Power Apps Community Demo Extravaganza 2020
    • Experimental
    • Error Handling
    • Power Apps Experimental Features
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 
    • Power Apps Community
    • Galleries
    • Community App Samples
    • Entry for the PowerApps Challenge: Find the shorte...
    Accepted Solution

    Entry for the PowerApps Challenge: Find the shortest path from A to Z

    02-08-2019 03:21 AM - last edited 02-08-2019 03:21 AM

    Anonymous
    Not applicable
    2664 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    Anonymous
    Not applicable
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    Entry for the PowerApps Challenge: Find the shortest path from A to Z

    ‎02-08-2019 03:21 AM

    Here's my entry for the PowerApps Challenge: Find the shortest path from A to Z

     

    Challenge 1:

     

    I have chosen a Dynamics entity in CDS and a SharePoint list as my data source. The idea is that we hold spa treatments in CDS, and store a Knowledge Base in SharePoint to help new starters learn what the treatments are about and what skills are needed. 

     

    In order to abstract the data source from the end user, I have set up a flow that returns the SharePoint data to PowerApps - this means the end users won't know where the knowledge base is held and I feel is great for when users only need read only access.

     

    The Flow:

    The trigger is "PowerApps", it then uses "Get items" from SharePoint and uses the "Response" action to return the value of "Get items" to PowerApps. powerappschallenge1.JPG

    It's important to specify the payload here, so PowerApps knows what's what in the JSON that's returned. An easy way to do this is to run the Flow in Test once, copied the generated response and use "use sample payload to generate schema"

    powerappschallenge2.JPG

     

    The PowerApps:

    The app connects to two data sources, one is a custom entity in CDS that brings back information from Dynamics and the second one is the Flow we have created above.

    powerappschallenge3.JPG

     

    The app consists of two galleries, one for each data source. The first gallery is linked to the CDS entity "Clubhouse Spa Treatment(s)". powerappschallenge5.JPG

    In the OnVisible() event of the Screen, I store the data from the Flow run in a collection. This means the Flow is run on startup, and not every time an item in the gallery is selected.

    powerappschallenge4.JPG

     

    Lastly, the second gallery is set to display items filtered to where the Title of the SharePoint list equals the Title (name) of the CDS entity. 

    powerappschallenge6.JPG

     

    Challenge 2:

    I had many ideas for this one, but decided to keep it as simple as possible by just using a Button Flow. The idea is that the candy shop owner would use the button to input SKU number and quantity sold every time they make a sale, and that information is stored in an Excel spreadsheet for inventory tracking.

     

    Here's the Excel spreadsheet table, it is stored in OneDrive

    powerappschallenge7.JPG

     

    And here's the flow, taking SKU number and Quantity as input and storing that information together with the timestamp in Excel.

    powerappschallenge8.JPG

    I wanted to demonstrate how simple the way from A to Z sometimes is, and how sometimes solutions really can be very simple.

     

    Challenge 3:

    I'm not sure I found the best solution for this challenge but thought I'd share my idea anyway - I'm again using a button worfklow, where I can input a reason, location, and the date the photo was taken as well as upload the photo. I'm asking for location / date, in case I'm retrospectively uploading photos rather than using the timestamp and longitude/latitude of the flow. 

    powerappschallenge9.JPG

     

    I then create the uploaded file in SharePoint using the "Create File" action. I have added additional meta data columns to the SahrePoint document library, and use "Update file properties" on the newly created file to update the meta data as provided in the manual input. 

    powerappschallenge10.JPG

    Preview file
    37 KB
    Labels:
    • Labels:
    • Galleries and Forms
    • Workflow and Process Automation
    Message 1 of 2
    2,664 Views
    2 Kudos
    Reply
    • All posts
    • Previous Topic
    • Next Topic
    Audrie-MSFT
    Power Automate Audrie-MSFT
    Power Automate
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    ‎02-09-2019 07:54 PM

    You did an awesome job! Thanks for detailing what you did and sharing screen shots as well as the app.

     

    I like your very creative approach to challenge #1 too! It could be used in several business scenarios, and I had not thought about it at all. You're a true problem-solver! As an alternative, you could also use SharePoint permissions. The app consumer won't be able to tell what specific connections you have unless they use Fiddler or something. 🙂

     

    I'l be reaching out on Tuesday, so stand by!

     

    Thank you,

    Audrie

    Message 2 of 2
    2,618 Views
    1 Kudo
    Reply

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Automate
    • Power Virtual Agents

    Power Apps

    • Sign in
    • Sign up

    Browse

    • Sample apps
    • Services

    Downloads

    • Studio
    • iOS
    • Android

    Learn

    • Documentation
    • Support
    • Community
    • Give feedback
    • Blog
    • Partners

    • © 2022 Microsoft
    • Follow Power Apps
    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Trademarks