Skip to main content

Posts

Showing posts with the label mPos

Embed PowerApps in Modern POS

There was a feature released around 8.1.3 to open URL in POS. https://docs.microsoft.com/en-us/dynamics365/unified-operations/retail/open-url-in-pos Follow the guide to add a button to POS via the Screen Layouts. In the Action, select Open URL. Enter the PowerApps url. In this case I want it to open up as embedded rather than popping up with a new window. Run your distribution job to have it show up on POS. Below is an example I am working on. We have an external system managing licensing. Just note, that it will pop up with a Microsoft login screen. You can tick the login to remember you. If the screen doesn’t fit in the POS window. You can click on “Fit to screen” on the top right. Hope this gives you ideas to take advantage of in Retail space. Possibilities are endless.

Debug Modern POS using .NET Reflector

Respect to all those POS developers. It really requires some dedication and focus to be a POS developer. This is an example of something I would have not figured out without my colleagues. We were working on a development project and we struggled to make sense out of the error. The error we got was complaining about the a method to validate the Unit of measure and Quantity. I was sure the object was not null and I had passed the right thing to it. Unit of measure and quantity fields were populated correctly. The modification was overriding the price. System.NullReferenceException was unhandled by user code    HResult=-2147467261    Message=Object reference not set to an instance of an object.    Source=Microsoft.Dynamics.Commerce.Runtime.Workflow    StackTrace:         at Microsoft.Dynamics.Commerce.Runtime.Workflow.CartWorkflowHelper.ValidateCartLineUnitOfMeasureAndQuantity (RequestContext context, Cart newCa...

Using Global Variables with Retail Modern POS

I am using version 8 platform update 15. Since the POS development is locked out and extensions only is allowed. There are some limitations and a number of objects are not accessible. I was trying to navigate to the customer search and allow the user to select a customer and return to the calling form. This was very challenging. One possible solution I found is to use Global variables. I used the window object. To do this, declare the window object as per screenshot. And then just set your object : eg. window.MyVarName = WhatEverObject; To get the value just invert it. You can see how I have the customer object in debug. Credit to one of my colleagues who suggested this solution.