<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ryan Jones on Medium]]></title>
        <description><![CDATA[Stories by Ryan Jones on Medium]]></description>
        <link>https://medium.com/@ryanJones_?source=rss-80c61d3544f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ThBLhQwGqvN63qVb6Ngytw.jpeg</url>
            <title>Stories by Ryan Jones on Medium</title>
            <link>https://medium.com/@ryanJones_?source=rss-80c61d3544f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:01:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ryanJones_/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My #1 Microsoft Excel Tip — Format As Table!]]></title>
            <link>https://medium.com/@ryanJones_/my-1-microsoft-excel-tip-format-as-table-b117b1ca9399?source=rss-80c61d3544f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b117b1ca9399</guid>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[microsoft-excel]]></category>
            <category><![CDATA[learn-microsoft-excel]]></category>
            <category><![CDATA[microsoft-365]]></category>
            <dc:creator><![CDATA[Ryan Jones]]></dc:creator>
            <pubDate>Wed, 19 Aug 2026 11:53:31 GMT</pubDate>
            <atom:updated>2026-08-19T11:53:31.598Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are at all familiar with Microsoft Excel, then you will have surely used it store or look at some data, in the grid like layout of rows and columns, however there is one simple feature Excel has, that goes largely unnoticed; “Format As Table”. In this post I will outline how to use it, but most importantly <strong><em>why </em></strong>to use it.</p><p>Firstly, let’s take a look at some example data. Below, we have a table with three columns and 6 rows (including the row with the column headings), with sample data about some employees. You will notice there is no other formatting applied to the data to make look like a “table”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/0*YEFH9ND9h994UYgr.png" /></figure><p>What a lot of many experienced users of Excel do, including professional consultants is do two things:</p><ol><li>Manually add some borders</li><li>Manually filter the data</li></ol><p>You can see how this might be done below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*S6pY7cOGpM_FWBBl.gif" /></figure><p>Now the data looks more “table” like, with clear borders and the filters added. However over time, and particularly with shared files where many users have access you will likely find that both the look of the table and integrity will become messy.</p><p>What tends to happen is as people add interact with the file, they either don’t maintain the manual borders when data is added or removed from the table, or they add borders to the whole file, or delete specific data rather than delete rows.</p><p>This all leads to a messy file, as you can see below, as I interact with the data in different ways, it becomes unstandardized from the original — this happens all the time, usually because in a shared file, users are only concerned with their own data, or the data they are specifically looking at in their filtered view. In my personal experience I have seen this happen far too often, even in files used in large technology programs, as the data grows into 100s of row, the file becomes unrecognizable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*utzIYCw0tAyAAIUR.gif" /></figure><p>Another issue with the, lets say “manual” approach is that some users don’t understand how sorting works in Microsoft Excel. In the example below, you will notice I highlight only cells A2:A6 (A2 to A6), ignoring the other columns. When I click to sort, Excel gives me a message and asks if I want to expand my selected data or continue to sort anyway. This is Excel saying “Do you want me to sort the whole data, or only the data you specifically highlighted?”, users that don’t know this will click “Just sort”. This results in only sorting the selected cells A2:A6, which means the data is now out of order. John Smith became Employee ID 5, where previously John Smith was ID 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*KMcGJMwifzkZqCv3.gif" /></figure><p>Thankfully there is an incredibly easy way to avoid the issues described above, and make your file more aesthetic and secure your data against rogue sorting. Use the “Format as Table” option, shown below. It lives under the “Home” section of the toolbar, it may appear differently depending if you use desktop or online version of Excel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*A7VvrDDCgHF6_4ew.png" /></figure><p>If we go back to our original sample data, let’s see what happens when we use Format As Table:</p><p>You will notice above that once I click format as table, select a style and click Ok, Excel automatically adds borders to the data, and automatically adds the filter options in the header row. All you need to do is click any cell within the data, then select Format As Table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*FPmAg38dt0c_lnX7.gif" /></figure><p>Now lets see what happens if I add a new row of data:</p><p>Excel detects I added new data to the existing table, and automatically adds the border around the new rows, meaning I don’t need to worry about me or any other users maintaining the aesthetic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*te3J8Bvo8mvdqwQP.gif" /></figure><p>Now lets test the sorting issue, remember previously if we did not highlight or select all the data, Excel will give us a warning that can be misinterpreted by some users and lead to data being sorted out of order.</p><p>Watch what happens now:</p><p>In this case I only selected 3 out of the 7 records, and followed the same sort process as before, however, Excel now doesn’t even give me the message about sorting, it just automatically sorts all the data, making sure that no data becomes out of order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*uKhlH4Ycv5QdlWTN.gif" /></figure><p>This is because Excel now recognizes the data as a defined “Table”, and actually gives the table a name in the background — this is another advantage to using Format As Table, but I won’t go into that here.</p><p>Notice below in the red area, the table is called “Table2”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*52EkdBcjJFq_mUp-.png" /></figure><p>If this was useful or you learned something new, please consider supporting me by leaving a clap/like, sharing or following!</p><p>Cheers</p><p>Ryan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b117b1ca9399" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 Properties to master for Power Apps beginners]]></title>
            <link>https://medium.com/@ryanJones_/3-properties-to-master-for-power-apps-beginners-dd75e7ed00ef?source=rss-80c61d3544f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd75e7ed00ef</guid>
            <category><![CDATA[power-platform-developers]]></category>
            <category><![CDATA[powerapps]]></category>
            <category><![CDATA[powerplatform]]></category>
            <category><![CDATA[microsoft-365]]></category>
            <dc:creator><![CDATA[Ryan Jones]]></dc:creator>
            <pubDate>Thu, 01 Aug 2024 19:43:04 GMT</pubDate>
            <atom:updated>2026-05-14T16:48:42.119Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are new to Power Apps it can be difficult to understand what you need to use to create your desired outcome. In this short article I will outline 3 properties that you will frequently need to make the applications you need.</p><h4>Recap: What is a “Property”?</h4><p>Each input or element you add to your screen in Power Apps will have a set of properties that you can adjust to suit your needs. These properties can be anything from Font or Padding, to Height and Width. In addition to these more aesthetic properties, there are some more functional ones that can change the behaviour of the element or how users interact with them.</p><h4>1. DisplayMode</h4><p>DisplayMode controls the interactivity of an element. The DisplayMode property will take one of three values, by default it is set to Edit:</p><ul><li>DisplayMode.Disabled</li><li>DisplayMode.Edit</li><li>DisplayMode.View</li></ul><p>The easiest way to think about using DisplayMode is to achieve the effect of “greying out” a button. You will be familiar with this in other applications where you want to click something but you can’t because its “greyed out”. This is what DisplayMode.Disabled does. A good use case for this is for validating form inputs, such as disabling a submit button until all the mandatory inputs are detected.</p><p>For example, if you have a simple form with three inputs called:</p><ul><li>Title</li><li>FirstName</li><li>LastName</li></ul><p>And a button to submit the information to a data source, you can set the button’s DisplayMode property to:</p><pre>If(<br>IsBlank(Title.Value) ||<br>IsBlank(FirstName.Value) ||<br>IsBlank(LastName.Value),<br>DisplayMode.Disabled,<br>DisplayMode.Edit<br>)</pre><p>This will disabled the button if any of those inputs are blank, ensuring your user cannot submit empty data.</p><p>Note: I have used .Value above, this relates to modern controls, for classic text input controls it would be .Text. More on <a href="https://medium.com/@ryanZeptepi/3-tips-for-working-with-modern-controls-in-power-apps-63ef9a41715a">Modern Controls</a></p><h4>2. Visible</h4><p>As well as disabling and enabling controls using DisplayMode, you can also completely hide controls using the Visible property.</p><p>The Visible property takes a true or false value, true will display the control, false will hide it.</p><p>You can also use a variable to control this by setting that variable to true or false, or expressions that result in a true or false value.</p><h4>3. OnSelect</h4><p>OnSelect is the primary driver of user interaction with anything that a user will click in your application, such as buttons or icons.</p><p>Navigation can be achieved using OnSelect, as well a number of other actions such using <a href="https://medium.com/@ryanZeptepi/microsoft-powerapps-beginners-guide-to-the-patch-function-5ac5879d833b">Patch </a>to send data to a data source.</p><p>You can also combine OnSelect and Visible to create a modal pop-up effect. Lets say you have a form but you want to display a confirmation message before that form is submitted, triggered by a user clicking a submit button.</p><p>You can set the OnSelect property of the button to something like:</p><pre>UpdateContext({showConfirmationMessage: true})</pre><p>You can then set the Visible property of your confirmation message control, perhaps a container or lable, to the variable shown above.</p><p>Visible = showConfirmationMessage</p><p>As the variable is changed to true by the OnSelect action, the visibility of the confirmation message is directly controlled by that variable.</p><p>You can add a close button to hide the message again by changing the variable back to false:</p><pre>UpdateContext({showConfirmationMessage: false})</pre><h4>Summary</h4><p>Overall, DisplayMode, Visible and OnSelect will go a long way to shaping how your users interact with your application screen and controls, as well as how your user flow is validated where data submission is involved. Of course there are many other features and functions of Power Apps that are also useful, have a look at my other <a href="https://medium.com/u/504c7870fdb6">Medium</a> articles to learn more.</p><p>Ryan</p><p><a href="https://medium.com/@ryanZeptepi">https://medium.com/@ryanZeptepi</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd75e7ed00ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 tips for working with modern controls in Power Apps]]></title>
            <link>https://medium.com/@ryanJones_/3-tips-for-working-with-modern-controls-in-power-apps-63ef9a41715a?source=rss-80c61d3544f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/63ef9a41715a</guid>
            <category><![CDATA[microsoft-power-apps]]></category>
            <category><![CDATA[microsoft-365]]></category>
            <category><![CDATA[microsoft-power-platform]]></category>
            <category><![CDATA[powerapps]]></category>
            <dc:creator><![CDATA[Ryan Jones]]></dc:creator>
            <pubDate>Mon, 08 Jul 2024 17:38:04 GMT</pubDate>
            <atom:updated>2026-05-14T16:48:55.083Z</atom:updated>
            <content:encoded><![CDATA[<p>Microsoft have released a new set of controls to use within the Power Apps studio called “Modern controls”, this short article will show you how to use them and 3 tips that will help as there are some changes that might impact how you work.</p><p>To enable modern controls, click the settings icon in the bottom left of the studio:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2zax-p4GRBLp9GhHCM45LQ.png" /></figure><p>Next, click on the “Updates” menu within the settings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xqLwUJ6Ipcu1IsMzkRFdRA.png" /></figure><p>Toggle the “Modern controls and themes” to “On” if its not already:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8uZY1iLzURjufSMjq2K6pA.png" /></figure><p>You should see the menu of available controls change slightly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gvzkzOvCzk4zBWq6wtBzlg.png" /></figure><p>Don’t worry, you can still access the old control system, they just get put into their own category within the menu as shown above.</p><h4>3 tips to get used to Modern Controls</h4><ol><li><strong>Text Input Controls .Text or .Value ?</strong></li></ol><p>In classic controls, you may have been used to using the Text Input control, and then when you need to reference that control’s input, using an expression like:</p><pre>TextInput1.Text</pre><p>However, with the new Text Input control, that changes to:</p><pre>TextInput1.Value</pre><p>This can easily trip you up and throw errors in the studio.</p><p><strong>2. Icons</strong></p><p>“Classic” icons existed as their own type of control, where you could select the icon and essentially make it a button by using the OnSelect property to make it interactive.</p><p>With modern controls, you might be wondering where icons have gone, well the new Button control comes with an integrated Icon property. You can also choose to have the icon display on its own, before or after text, or not at all, using the Layout property. Some examples are shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*8OzP2tJw3IbFGz5NRwxDIg.png" /></figure><p><strong>3. The Header control</strong></p><p>One of the brand new controls provided to you as a user is the “Header”, which is essentially a pre made header template that includes a few different controls to save time from creating your own header in each screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*oLsIaib-rv5jiHZ1yMZXog.png" /></figure><p>The header includes properties for a title, logo and a profile picture. This can be a nice time saver if you already follow this kind of screen design. An unedited header control is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZGEfDZndYaAxAHtxfD-VrQ.png" /></figure><p>Thanks for reading, if you found this helpful or learned something new, feel free to browse my other stories via my profile <a href="https://medium.com/u/80c61d3544f9">Ryan @ Zeptepi Digital</a> and also follow us on X (@zeptepidigital).</p><p>Cheers,</p><p>Ryan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63ef9a41715a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with images in Power Apps, Power Automate, and SharePoint]]></title>
            <link>https://medium.com/@ryanJones_/working-with-images-in-power-apps-power-automate-and-sharepoint-e95cc6fa0d88?source=rss-80c61d3544f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e95cc6fa0d88</guid>
            <category><![CDATA[microsoft-power-platform]]></category>
            <category><![CDATA[sharepoint]]></category>
            <category><![CDATA[power-apps-developer]]></category>
            <category><![CDATA[power-apps-consulting]]></category>
            <category><![CDATA[power-automate]]></category>
            <dc:creator><![CDATA[Ryan Jones]]></dc:creator>
            <pubDate>Mon, 18 Mar 2024 20:20:57 GMT</pubDate>
            <atom:updated>2026-05-14T16:49:05.183Z</atom:updated>
            <content:encoded><![CDATA[<p>There are a few different methods to display images in a canvas Power App, depending on your use case. In this guide I will cover some different ways you can display an image inside a gallery. If you are needing something more complex then you can probably skip to the last section.</p><h4>1. Using The “Image” column type in a SharePoint List</h4><p>This might seem like the most simple method, if you are familiar with how galleries work in Power Apps and how you can reference columns from a SharePoint data source, you would rightly think that you can just connect your data and then insert an image control in your app, and use the below as your expression:</p><pre>ThisItem.Image<br><br>//Or for referencing outside of a gallery<br><br>Gallery.Selected.Image </pre><p>And you will get a result like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s4RlrunvJpMvj_Kp5ldMeQ.png" /><figcaption>A gallery displaying images referencing the Image column type from SharePoint.</figcaption></figure><p>This works perfectly if you can feasibly upload images to the SharePoint list manually, for example in a small quantity such as the above it is not much of a manual task, but if you have hundreds or more or records then you won’t want to be uploading images one by one into list items.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*YSIdYx0_BwMZyyvAaaUfwg.png" /><figcaption>Uploading images manually into a SharePoint list column.</figcaption></figure><p>Unfortunately the SharePoint connector does not support adding images directly into an Image list column yet. You can insert images via a HTTP request but that is too complex for most beginners or business users.</p><h4>2. Using a hyperlink directly to an image</h4><p>An alternative method to uploading images directly into the list could be to reference hyperlinks to an image from the web. For example, you can store the URL of an image into a text column or hyperlink column in your SharePoint list, and then do a similar reference like</p><pre>ThisItem.imageLink<br><br>//Or for referencing outside of a Gallery<br><br>Gallery.Selected.imageLink</pre><p>The end result will be the same as the first method:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s4RlrunvJpMvj_Kp5ldMeQ.png" /><figcaption>Images displayed in a Gallery by referencing a URL</figcaption></figure><p>This again does rely on you having prior knowledge of the URL you want to use and also entering it in the list in some way. Unlike the image column, you could image creating a Power Automate flow that updates list items with the URLs provided there is some link between your list item and the URL you want to assign to that item.</p><h4>3. Using the attachment column</h4><p>By default each SharePoint list has a column for Attachments, it is generally hidden in the view unless you explicitly choose to show it. Attachments can also store image files, that can then be referenced. There is also an “Add Attachment” action with Power Automate that you could potentially use to do the attachment creation for you, which is a potential workaround for the fact you can’t do that with the Image column. You could also in theory have users upload attachments via a form control within an app. When you reference the attachments column, it will return a table value, an image control will be expecting one record, so you will need to use this expression:</p><pre>First(ThisItem.Attachments).Value<br><br>//Or referencing outside of a gallery<br><br>First(Gallery4.Selected.Attachments).Value</pre><p>Again the end result will be the same:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*s4RlrunvJpMvj_Kp5ldMeQ.png" /><figcaption>Displaying images in a gallery using the attachments column.</figcaption></figure><p>An obvious downside here is that if you have to store attachments for any other reason then you would have trouble getting the exact attachment you want from a table of attachments.</p><h4>4. Referencing images stored in a document library</h4><p>Lets say you have some images stored in a document library in a SharePoint site, you would be forgiven for thinking that you could use a shareable link from that file and use that as the URL for your image in an app. Sadly that doesn’t work. However, there is an easy way to get a link using Power Automate and the “Get File Properties” or “Get files (properties only)” action. Both of these return a parameter for “Link to item”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*BU11fXd5wpi7XC6RJ2VMAw.png" /><figcaption>The “Link to item” value returned by the get file properties action</figcaption></figure><p>Due to the above, you can now easily imagine a scenario where you have many images stored in a document library, and as long as you can link the desired image to its relevant list item with an identifier (for example an image of a car saved with its registration as the file name, and a list item of the car with a column for the registration), you can run a flow to store the link directly in your list, saving you the need to do any kind of lookups from your SharePoint list data to your document library images inside your app.</p><p>Full Example:</p><p>Imagine we have a holiday company that has many different holidays each with an assigned type, for each type there is an associated image. But the images are stored in a separate document library and our list of holidays is separate to that. How can we reference the images without manually uploading data?</p><p>We have a list of items like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*BtTYdyLmAeCTFxVCeXWQ2A.png" /><figcaption>A list of example holiday types.</figcaption></figure><p>Note there is an empty imageLink column.</p><p>We have three images stored in a SharePoint document library</p><ul><li>camping.png</li><li>drinking.png</li><li>spa.png</li></ul><p>We can build a Power Automate flow that says for each tripType, find the related image and populate the list item with a link to that image. Then we can easily reference it in our app without doing any lookups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*vaU5s8ggpPVVdYMVkhpWNA.png" /></figure><p>The key parameter here is an OData query on the Get files action</p><pre><br>//This is checking that the file name of the image file matches the tripType<br>//name, image file name = {tripType}.png<br><br>FileLeafRef eq &#39;@{items(&#39;For_each&#39;)?[&#39;tripType&#39;]}.png&#39;</pre><p>A nice tip here is using the FileLeafRef as the method to check the full file name, shout out to this <a href="https://powerusers.microsoft.com/t5/General-Power-Automate/Get-files-with-Odata-filter-on-name/td-p/309644">post </a>for the tip.</p><p>In the Update item action, we are using the Link to item as the dynamic content to insert into our imageLink column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*kjKMjp2lQLe0lSylZMpD0A.png" /></figure><p>When this flow runs, it will find the associated image based on the tripType, and then update the imageLink column in our list with the linkToItem property.</p><p>Before:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*2qOxECJwLjMW5i62To223A.png" /></figure><p>After:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*UpHalPpqzkjVP9G-XadJ6Q.png" /></figure><p>You can see the imageLink column has been populated and the relevant file names at the end of each.</p><p>Now in our app we can easily reference the relevant images just by using a simple ThisItem reference to our imageLink column:</p><pre>ThisItem.imageLink<br><br>//Or for reference outside of a gallery<br><br>Gallery.Selected.imageLink</pre><p>Here you can see the end result and I have also pulled in the trip description or Title from the list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4BrOoDAOidfB0ChXTafs8g.png" /></figure><p>Hopefully you can see how this kind of flow might be useful when dealing with large amounts of files. You can also do a similar process if you need to import data from an external source such as SQL, by creating list items in and creating image files in a separate library, whilst pulling the Link to item property and updating that in your list within the same flow.</p><p>If you found this useful please consider leaving a clap or sharing it with your networks!</p><p>Please feel free to reach out via X for any needs you may have</p><p><a href="https://twitter.com/zeptepidigital">https://twitter.com/zeptepidigital</a></p><p>Cheers</p><p>Ryan</p><p><strong><em>Photo Credits</em></strong></p><p><a href="https://images.unsplash.com/photo-1620733723572-11c53f73a416?ixlib=rb-4.0.3&amp;ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8c3BhfGVufDB8fDB8fHww&amp;auto=format&amp;fit=crop&amp;w=500&amp;q=60">https://images.unsplash.com/photo-1620733723572-11c53f73a416?ixlib=rb-4.0.3&amp;ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8c3BhfGVufDB8fDB8fHww&amp;auto=format&amp;fit=crop&amp;w=500&amp;q=60</a></p><p><a href="https://images.unsplash.com/photo-1571687949921-1306bfb24b72?ixlib=rb-4.0.3&amp;ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTJ8fGNhbXBpbmd8ZW58MHx8MHx8fDA%3D&amp;auto=format&amp;fit=crop&amp;w=500&amp;q=60">https://images.unsplash.com/photo-1571687949921-1306bfb24b72?ixlib=rb-4.0.3&amp;ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTJ8fGNhbXBpbmd8ZW58MHx8MHx8fDA%3D&amp;auto=format&amp;fit=crop&amp;w=500&amp;q=60</a></p><p><a href="https://images.unsplash.com/photo-1471421298428-1513ab720a8e?ixlib=rb-4.0.3&amp;ixid=M3wxMjA3fDB8MHxzZWFyY2h8NTR8fGRyaW5raW5nfGVufDB8fDB8fHww&amp;auto=format&amp;fit=crop&amp;w=500&amp;q=60">https://images.unsplash.com/photo-1471421298428-1513ab720a8e?ixlib=rb-4.0.3&amp;ixid=M3wxMjA3fDB8MHxzZWFyY2h8NTR8fGRyaW5raW5nfGVufDB8fDB8fHww&amp;auto=format&amp;fit=crop&amp;w=500&amp;q=60</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e95cc6fa0d88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating Using Buttons]]></title>
            <link>https://medium.com/@ryanJones_/navigating-using-buttons-1a008a5bf423?source=rss-80c61d3544f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a008a5bf423</guid>
            <category><![CDATA[microsoft-365]]></category>
            <category><![CDATA[powerapps]]></category>
            <category><![CDATA[microsoft-power-platform]]></category>
            <dc:creator><![CDATA[Ryan Jones]]></dc:creator>
            <pubDate>Sat, 06 Jan 2024 15:28:21 GMT</pubDate>
            <atom:updated>2026-05-14T16:49:14.263Z</atom:updated>
            <content:encoded><![CDATA[<p>When you build canvas apps, one of the basic requirements you will have is to move through the different screens in your app, using buttons that a user will interact with.</p><p>In this short guide I will show you how to create a button and use it to navigate, and some of the key things to note.</p><p>Imagine you have an app with at least two screens, and you want your user to be able to switch between them as they complete some task or process. To do this you can add a button by selecting “Button” from the “Insert” menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bQkBtahOGBnr8sUk" /></figure><p>If you click on the button you should be able to see the “OnSelect” property either in the formula bar in the top left of screen, by default it will be <strong>false.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/0*m1nKA2feuJOVLvQW" /></figure><p>This is the property you will need to change to make your button useable.</p><p>In the formula bar, change false to:</p><pre>Navigate(screen_name)</pre><p>Replace screen_name in the above with whatever your screen is called.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/0*0zau5thPBu1So-MC" /></figure><p>Now your button will navigate to the specified screen when clicked.</p><p>You can also add an optional transition, which adds a screen effect as the screens change, a bit like slide transitions in PowerPoint presentations!</p><p>To do this, follow this syntax:</p><pre>Navigate(screen_name, transition_type)</pre><p>The app studio should give you a prompt for the transition once you type the comma:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*ujIN75bh6mt5P5Qk" /></figure><p>Select one from the list and test them out to see which ones you prefer! Again, these are optional so you don’t have to use it if you prefer not to.</p><p>One other useful tip for buttons is that there is a function to use which will send the user back to the screen they came from last, this is called <strong>Back()</strong>.</p><p>This means you don’t have to specify any particular screen in the formula, you only need to put Back() in the “OnSelect” property. (Note: you can also use transitions for Back, by typing it inside the brackets).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/0*OCEipHC9Imnqi-MR" /></figure><p>Now you have all the basics to start using buttons to navigate around an app. In fact, you can also apply the same technique to any element that has the “OnSelect” property, such as text labels and images.</p><p>In the example below, the button taking the user from screen 1 to screen 2, is using Navigate(), with a transition, and the button taking the user back to screen 1 from screen 2, is just using Back().</p><p>Cheers</p><p>Ryan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a008a5bf423" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using “Remove” in Collections]]></title>
            <link>https://medium.com/@ryanJones_/using-remove-in-collections-cf95791e1836?source=rss-80c61d3544f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf95791e1836</guid>
            <category><![CDATA[microsoft-365]]></category>
            <category><![CDATA[powerapps]]></category>
            <category><![CDATA[microsoft-power-platform]]></category>
            <dc:creator><![CDATA[Ryan Jones]]></dc:creator>
            <pubDate>Sat, 06 Jan 2024 15:25:27 GMT</pubDate>
            <atom:updated>2026-05-14T16:49:23.076Z</atom:updated>
            <content:encoded><![CDATA[<p>This post follows on from a previous post <a href="https://medium.com/@ryanJones_/introduction-to-collections-90da604a61d1">Introduction to Collections</a> where I introduced the idea of using collections in a simple app to request office equipment.</p><p>In that post I detailed how to get started with a collection but there was some additional functionality we could add for the user, that I am following up on in individual posts.</p><p>Here I am going to outline how to remove something from a collection.</p><h4>Context</h4><p>In the previous post linked above, we created a simple app to allow users to request office equipment. We used a collection to create a “basket” flow where users could add one or more items to a basket and then submit a request for the entire basket.</p><p>Here is a quick visual reminder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VE22X_Fv-VEYkUtn" /></figure><p>You might notice that in the “Current Basket” section there is no way to remove an item. That is what we will resolve in this post.</p><h4>Solution</h4><p>To achieve the ability to remove an item from a collection, it is pretty straight forward, especially when using a gallery like we are.</p><p>We will need to use the “Remove” function, which has the following syntax:</p><pre>Remove(data_source, item)</pre><p>I will add this to the “OnSelect” property of the “Trash” icon that I have added in the basket gallery, as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*hMJfRh26YQmF9Emb" /></figure><p>The complete formula in this example is:</p><pre>Remove(currentBasket,ThisItem)</pre><p>Now when the user clicks the trash icon, that item will be removed from the basket, as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*692dYMtf9Vop-utB" /></figure><p>Hopefully you found this interesting or learned something new, if you did please consider leaving a like and following my page here or on <a href="https://twitter.com/iamry2j">X</a></p><p>Cheers,</p><p>Ryan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf95791e1836" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Collections]]></title>
            <link>https://medium.com/@ryanJones_/introduction-to-collections-90da604a61d1?source=rss-80c61d3544f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/90da604a61d1</guid>
            <category><![CDATA[microsoft-power-platform]]></category>
            <category><![CDATA[microsoft-365]]></category>
            <category><![CDATA[powerapps]]></category>
            <dc:creator><![CDATA[Ryan Jones]]></dc:creator>
            <pubDate>Sat, 06 Jan 2024 15:24:41 GMT</pubDate>
            <atom:updated>2026-05-14T16:49:31.622Z</atom:updated>
            <content:encoded><![CDATA[<p>In Power Apps you can use Collections as temporary data stores, that act like variables during the user’s session.</p><p>Collections also act a lot like data sources, which means you can use them in a lot of the same ways, for example in tables and galleries.</p><p>In this short guide I will introduce how to use collections with an example of an application that allows users to order office equipment.</p><h4>Context</h4><p>Imagine you have an application that office colleagues can use to order or request office equipment such as keyboards and monitors. You have set up an app that allows users to order items one at a time, as below, there is a gallery linked to a data source of available items, and each item has an “Order” button next to it. When you click “Order”, there is a workflow that fires that is suitable to whatever your internal processes are. How could this be improved?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*kYCKYbB_mWwGeNV_" /></figure><h4>Requirement</h4><p>You receive some feedback from your users that they would like the ability to order multiple items at one time, rather than click “Order” and follow a process for each individual item. You could summarize it as a user story like:</p><blockquote><strong><em>As an</em></strong><em> Office administrator</em></blockquote><blockquote><strong><em>I want</em></strong><em> to be able to order multiple pieces of equipment at once</em></blockquote><blockquote><strong><em>So that</em></strong><em> I can review all the items I need in one process and be more efficient</em></blockquote><h4>Solution</h4><p>To resolve this requirement, we will utilize collections in our app, to create a “basket” that allows users to add multiple items to their basket and then proceed to order all the items at once.</p><p><strong>Step 1</strong></p><p>First of all lets change the user interface elements to fit our solution:</p><ul><li>Remove the “Order” button, and replace it with a “+” icon</li><li>Add the “Shopping cart” in some spare space on the screen</li><li>Add another vertical gallery underneath the shopping cart icon</li><li>Add a “Submit” button</li></ul><p>After these changes we have something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*gsC403o4_ZBqVcx5" /></figure><p><strong>Step 2</strong></p><p>Now our layout has all the things we need to get started on this solution, we can add the functionality to the “+” icon that will add items to our collection</p><p>To do this, we select the icon and make sure we are viewing the “OnSelect” property in the formula bar. Then we add our “Collect” statement, this will create and add a record to the collection. The collection will hold a temporary table of the items we want to order.</p><p>The syntax for Collect is:</p><pre>Collect(collection_name, {field1: value, field2: value, …..})</pre><p>Our final formula looks like:</p><pre>Collect(<br>currentBasket,<br>{<br>item_name: ThisItem.itemName,<br>item_id: ThisItem.itemID,<br>item_quantity: 1<br>}<br>)</pre><p>“currentBasket” is our collection name, and we are creating fields or columns for “item_name”, “item_id” and “item_quantity”. We are then adding the values from the inventory list into our collection using the ThisItem notation. For now, we have set the quantity to 1, you might see how this is potentially a restraint but for the purposes of this guide we will stick to that.</p><p>If a user now clicks each of the “+” icons against an item in the inventory, we will end up with a collection that looks something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/0*xmcMfIi0PimxOmno" /></figure><p><em>Note: you can view the data in collections by clicking the “Variables” tab.</em></p><p><strong>Step 3</strong></p><p>Now we have a collection that holds the data of the items in the user’s basket, now we can link this collection to the second gallery that we added earlier on.</p><p>Set the data source of the gallery to the collection name, and now the basket gallery should change as you add items from the inventory, as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AY7qQ_-VklTzyL9p" /></figure><p><strong>Step 4</strong></p><p>Hopefully you can start to see how collections can be used and how they are useful in Power Apps. To complete this solution we have one more thing to do which is to add the Patch statement that will submit all our basket items at once. In the initial example of this app where users order one by one, it would have been a simple patch statement on each “Order” button, however now we have to do something a little more complex by using ForAll:</p><pre>ForAll(<br>currentBasket,<br>Patch(<br>orderRequests,<br>Defaults(orderRequests),<br>{<br>itemName: item_name,<br>Title: item_id,<br>itemQuantity: item_quantity<br>}<br>)<br>)</pre><p>The above expression will iterate through each of the records saved to the collection currentBasket and Patch each one individually to a data source called orderRequests.</p><p>There you have it, a simple example of how collections can be used in apps, in future posts I will be outlining how this demo app can be improved with additional functionality such as:</p><ul><li>Ability to add different quantities of the same item</li><li><a href="https://medium.com/@ryanJones_/using-remove-in-collections-cf95791e1836">Ability to remove items from the basket</a></li><li>Reduce the available stock once an order has been placed</li><li>Create an approval workflow for requests</li></ul><p>Look out for updates on the above.</p><p>Hopefully you found this interesting or learned something new, if you did please consider leaving a like and following my page here or on <a href="https://twitter.com/iamry2j">X</a></p><p>Cheers,</p><p>Ryan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90da604a61d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a search box in Microsoft PowerApps (and intro to collections)]]></title>
            <link>https://medium.com/@ryanJones_/creating-a-search-box-in-microsoft-powerapps-and-intro-to-collections-3916f9a57380?source=rss-80c61d3544f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3916f9a57380</guid>
            <category><![CDATA[power-apps-developer]]></category>
            <category><![CDATA[canvas-app]]></category>
            <category><![CDATA[powerapps]]></category>
            <category><![CDATA[microsoft-power-platform]]></category>
            <category><![CDATA[microsoft-365]]></category>
            <dc:creator><![CDATA[Ryan Jones]]></dc:creator>
            <pubDate>Tue, 21 Nov 2023 18:34:10 GMT</pubDate>
            <atom:updated>2026-05-14T16:49:40.035Z</atom:updated>
            <content:encoded><![CDATA[<p>When using Microsoft PowerApps you will likely come across use cases where you will want your users to be able to search some kind of data source.</p><p>In this quick guide I will show how to create a simple search bar in a few simple steps.</p><p>For this demonstration I will be using a collection (if you are not familiar with collections, think of it as a temporary data set like a variable), but it could be anything that you connect to (SharePoint List, Excel etc).</p><p>To set up this demo, we will start with a blank canvas app and I will be adding three elements to our screen:</p><ol><li>Button — This will add data to our collection when clicked (remember this like a temporary data set)</li><li>Text Input — This will be where we type our search terms, like any other search bar you will be familiar with.</li><li>Gallery — This will display the items inside our collection</li></ol><p>Firstly, add a button and set the OnClick property to something like this:</p><pre>Collect(<br>    myDemoCollection,<br>    {<br>        carModel: &quot;Ferrari&quot;,<br>        carColour: &quot;Red&quot;<br>    },<br>    {<br>        carModel: &quot;Aston Martin&quot;,<br>        carColour: &quot;Green&quot;<br>    },<br>    {<br>        carModel: &quot;McLaren&quot;,<br>        carColour: &quot;Papaya&quot;<br>    }<br>)</pre><p>You don’t have to use cars, it could be anything. “myDemoCollection” refers to the name of the collection, and the data inside the curly braces { } represent one record.</p><p>Next add a Gallery to your canvas app, when you do, it should look something like below to start with, prompting you to select a data source.</p><p>Note: you can see our button on the left labelled “Add data to collection”</p><p>If you are following this guide select “myDemoCollection” as the data source, else connect whatever data source you are using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3GOGn5H3YFwgoL6Ty63UQ.png" /></figure><p>You will notice that if you connect to the collection, the gallery will be blank.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-LaFwQnVErDI2x-1XHPucA.png" /></figure><p>Now watch what happens when we click the button we inserted.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDXz0UrYCwI0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDXz0UrYCwI0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDXz0UrYCwI0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6d8b1db3b3dfc20dddc594ad6e76f6f1/href">https://medium.com/media/6d8b1db3b3dfc20dddc594ad6e76f6f1/href</a></iframe><p>The gallery is now populated with the items in our collection.</p><p>Lastly we want to enable the user to search through those items.</p><p>Add a text input to your canvas app above the gallery somewhere like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q42K9XRFF58-RWg-8l6x4A.png" /></figure><p><em>Note: When you add a text input it will have some default text “Text input”, I have removed this, and added Hint Text — “Search cars”.</em></p><p>Now we have all the elements to provide our user’s with a search function.</p><p>Select your gallery, and look at the “Items” property, it should display the name of whatever your data source is.</p><p>In the case of our demo it is:</p><pre>Items = myDemoCollection</pre><p>We need to change this so that the items change based on the users search input, like:</p><pre>Search(<br>    myDemoCollection,<br>    TextInput1.Text,<br>    &quot;carColour&quot;,<br>    &quot;carModel&quot;<br>)</pre><p>myDemoCollection refers to our data source,</p><p>TextInput1.Text refers to the input into the text input from our user,</p><p>“carColour” and “carModel” are the fields to search by.</p><p>Now you can see we have a working searchable gallery.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FqRDXNFQRTBA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DqRDXNFQRTBA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FqRDXNFQRTBA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3544712abc83aac3127340126e54f289/href">https://medium.com/media/3544712abc83aac3127340126e54f289/href</a></iframe><p>If you enjoyed this content or it helped you in your work place, please consider leaving a clap or respond to this post.</p><p>If you need any assistance with PowerApps or PowerAutomate, or anything Microsoft 365 related, please follow and contact us via Twitter</p><p><a href="https://twitter.com/zeptepidigital"></a></p><p>Cheers</p><p>Ryan @ Zeptepi Digital</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3916f9a57380" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using dayOfWeek in Power Automate]]></title>
            <link>https://medium.com/@ryanJones_/using-dayofweek-in-power-automate-6eb32d840b1f?source=rss-80c61d3544f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6eb32d840b1f</guid>
            <category><![CDATA[microsoft-365]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[power-automate]]></category>
            <category><![CDATA[microsoft-power-platform]]></category>
            <dc:creator><![CDATA[Ryan Jones]]></dc:creator>
            <pubDate>Wed, 08 Nov 2023 21:16:25 GMT</pubDate>
            <atom:updated>2026-05-14T16:47:50.337Z</atom:updated>
            <content:encoded><![CDATA[<p>Power Automate is great for running daily automated tasks, but what if you want to run the same flow from Sunday to Friday, but change it slightly on a Saturday?</p><p>In this short post I will show you how to use the <strong>dayOfWeek</strong><em> </em>function so you can easily split your workflows depending on the day of the week.</p><p>For example, lets say we have a flow that takes some data from another source and adds some rows to an Excel table everyday. Now lets say at the end of the week we want to email that file to a set of people, but only on the last day of week.</p><p>You could achieve this by making separate flows for everyday of the week, and have them run on their set days, or you could create a secondary flow that sends the email on the last day of the week. In this example we will use the <strong>dayOfWeek</strong> function to incorporate it all in one, whilst also providing flexibility for future changes.</p><p>Below you can see the basic high level structure of this example flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DP00trW3d1SUnf5qCrrw4g.png" /><figcaption>Overview of flow using a switch on day of the week.</figcaption></figure><p>The trigger for the flow is a recurrence, you can set this to run at whichever intervals you need to, in our case it will be daily.</p><p>Next we have the key part of this process which is the compose action. Here we will get the output of <strong>dayOfWeek</strong>.</p><p>In the input parameter we have the complete expression:</p><pre>dayOfWeek(utcNow())</pre><p>To explain a bit more, <strong>dayOfWeek </strong>requires a timestamp as an argument, the syntax is as below.</p><pre>dayOfWeek(timestamp: string)</pre><p>So we have to provide <strong>dayOfWeek </strong>with a timestamp, and we can do that easily by including <strong>utcNow()</strong> as the argument.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a68aIrmmp6St1GHoBg5rzQ.png" /></figure><p>The output of this expression will be a number from 0–6, where:</p><p>Sunday = 0<br>Monday = 1<br>Tuesday = 2<br>Wednesday = 3<br>Thursday = 4<br>Friday = 5<br>Saturday = 6</p><p>After the compose action, we can then include a switch control, which will split the flow based on the output of the compose action (that is to say, which day of the week it is).</p><p>Looking again at the high level flow, you can see a branch for each day of the week, and each is set to the corresponding number assigned to the day as listed above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DP00trW3d1SUnf5qCrrw4g.png" /><figcaption>Overview of flow using a switch on day of the week.</figcaption></figure><p>Below is a detailed view of the parameters for one of the switch cases, in this example it is Sunday. You can see the parameter is set to <strong>Equals = 0. </strong>This means only when our <strong>dayOfWeek </strong>output = 0, this branch will execute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*oNtKG-4EZtksSwP1TrKwEA.png" /></figure><p>I hope you found this helpful, please do check my page for more useful posts around Microsoft Power Platform.</p><p>Ryan @ Zeptepi Digital</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6eb32d840b1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft PowerApps: How to use LookUp (with examples!)]]></title>
            <link>https://medium.com/@ryanJones_/microsoft-powerapps-how-to-use-lookup-with-examples-b11cf003185f?source=rss-80c61d3544f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b11cf003185f</guid>
            <category><![CDATA[microsoft-365]]></category>
            <category><![CDATA[microsoft-power-platform]]></category>
            <category><![CDATA[powerapps]]></category>
            <dc:creator><![CDATA[Ryan Jones]]></dc:creator>
            <pubDate>Sun, 27 Aug 2023 19:36:55 GMT</pubDate>
            <atom:updated>2026-05-14T16:49:49.837Z</atom:updated>
            <content:encoded><![CDATA[<p>As you progress your journey with PowerApps you may find the need to use multiple lists or data sources, which introduce the concept of relational databases or tables. This is where you can reference data in one table using a key value from another table. In a simple form this can be thought of as a “Look Up”. This is where the “LookUp” fucntion in PowerApps comes in handy, and it does what the name suggests; looks up a value in a data source. If you are at all familiar with look ups in Microsoft Excel you will be at ease with this function.</p><p>Below I will describe a practical use case where <strong>LookUp</strong> could be useful.</p><h3>Lets consider this scenario:</h3><p>We have an app that allows internal users to request office equipment and for it to be delivered to their particular office, and in this case there are offices in different counties within the UK (counties are the equivalent to a State in the US).</p><p>In our app we have a simple form with the following <strong>labels </strong>and input names:</p><ul><li><strong>First Name</strong> = firstNameInput</li><li><strong>Last Name</strong> = lastNameInput</li><li><strong>Equipment </strong>= equipmentInput</li><li><strong>Office to deliver to</strong> = deliveryOfficeInput</li><li><strong>Office Location</strong> = officeLocationInput (disabled for the user)</li><li><strong>Shipping Method</strong> = shippingMethodInput (disabled for the user)</li><li><strong>Save button</strong> = saveButton</li></ul><p>Office Location and Shipping Method are disabled (greyed out) as this is where we will use <strong>LookUp </strong>and we don’t want to allow manual input.</p><p>Here is the basic layout of our app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oATS4_0Tt50dxOBiaNko3g.png" /></figure><p>To enable this app we also have the following data sources, we are using a SharePoint List but it could be another source like excel:</p><ol><li><strong>ordersTable </strong>— This will be where any orders are saved.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*G6ZSKBG0NMa01_sbZThLLg.png" /></figure><p>2. <strong>officesTable </strong>— A list of available offices and their location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*01slgJCQ0FMmk_RfKXhFeg.png" /></figure><p>3. <strong>shippersTable </strong>— A list of preferred shipping companies for different locations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/1*jHE3atVxbTMS-v0uHVMm7Q.png" /></figure><h3>Using LookUp</h3><p>When our end user is completing the form and selects the office they want to deliver the items to, we want to auto-populate the Office Location and Shipping Method inputs, to do this we can use <strong>LookUp</strong>.</p><p>The template expression for LookUp is as follows:</p><pre>LookUp(source, condition, result)</pre><p>To expand on this a bit more:</p><ul><li><strong>source </strong>= the table you want to retrieve a value from</li><li><strong>condition </strong>= the criteria you will use to perform the LookUp</li><li><strong>result </strong>= the specific field/column you want to return a value</li></ul><p>We want to enter our expression into the “Default” property of the input we are working on, this means that the default text value of the input will be the result of the LookUp function.</p><p>Firstly, to auto-populate the Office Location we can perform a <strong>LookUp </strong>in the <strong>officesTable</strong>, to retrieve the county, based on the name of the office the user selects in the form.</p><p>When we transpose our own values into the template we get:</p><pre>LookUp(<br>    officesTable,<br>    officeName = deliveryOffice.Selected.officeName,<br>    county<br>)</pre><p>This is essentially asking the app to:</p><ol><li>Look in the officesTable</li><li>Find the record where the officeName is equal to the office selected by the user</li><li>Return the value from the county field, for that record</li></ol><p>Secondly, we can do another LookUp in the <strong>shippersTable </strong>to populate the <strong>Shipping Method</strong> input, based on the location of the office populated by the previous LookUp. By again following the template and inputting our own values, we get:</p><pre>LookUp(<br>    shippersTable,<br>    county = officeLocation.Text,<br>    preferredShipper<br>)</pre><p>This is essentially asking the app to:</p><ol><li>Look in the <strong>shippersTable</strong></li><li>Find the record where the county is equal to the office location populated in the previous steps</li><li>Return the value from the <strong>preferredShipper </strong>field, for that record</li></ol><p>Now when the user changes the desired delivery office, the two inputs for Location and Shipping Method will automatically change based on the user’s selection:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7fEnrvLyQcJ3TGicusHuJg.gif" /></figure><p>We can finish off the demonstration by including a Patch statement on our “Save” button to save the order to our <strong>ordersTable</strong>:</p><pre>Patch(<br>    ordersTable,<br>    Defaults(ordersTable),<br>    {<br>        Title: CountRows(ordersTable) + 1,<br>        firstName: firstNameInput.Text,<br>        lastName: lastNameInput.Text,<br>        equipment: equipmentInput.Selected.Value,<br>        deliveryOffice: deliveryOfficeInput.Selected.officeName,<br>        shippingMethod: shippingMethodInput.Text<br>    }<br>)</pre><blockquote>To read more about Patch you can <a href="https://medium.com/@ry2j/microsoft-powerapps-beginners-guide-to-the-patch-function-5ac5879d833b">read my post here</a>.</blockquote><p>Thank you for reading, if you found this helpful or interesting then please consider leaving a clap, sharing this post with your network, or following my page.</p><p>Ryan</p><p><a href="https://www.buymeacoffee.com/ry2j">https://www.buymeacoffee.com/ry2j</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b11cf003185f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>