At It’s EVIDIosa, not Leviosaaaa, we never allow ourselves to å hvile på laurbærene, and this wonderful event at the mighty Soria Moria is no exception. While being extremely reasonable people, we are still in constant opposition to mainstream stuff unless we are given a good and well-thought-out justification. That leads us to…
Power Pages or NOT Power Pages
We all have a relationship with Power Pages, and it is quite complex as we recognize the great OOB capabilities in terms of forms, lists, webapi and so on. But the developer experience can often feel quite limited, often having to work in the same envirnoment, clearing cache at all times and having a hard time using the newest and hippest technology.
With our complete template set up using Svelte, each developer can easily work locally on their own git branch on their own machine with the new and flexible front end technology while never ever having to worry about going in the way of other developers. After the initial setup, there are mostly quite basic HTML and TypeScript, allowing for developers with some experience from working with templates in Power Pages to have a smoooooth experience and crafty performance.
Let’s have a look at some crucial setup. The authentication process for the signed in user is handled with Microsoft´s MSAL library, allowing for Single Sign On and silent token-handling.
We define types server side from Dataverse retrieving just the information we want, allowing for using each record’s columns easily, instead of using FetchXML and Liquid (Extremely hip!!).
But enough code for now! Let’s look at the beauty of the page itself! It’s so hip we feel younger just by looking at it! And by the way: we have not yet mentioned licences, which can be a huge factor.