Raising kits is not an easy task. No, it is cheap. If you need to talk to your bank about refinancing your mortgage to renovate the house according to the building permit you are yet to apply for, and in case your house is old and potentially has some lead paint or asbestos, you would also be trying to keep the kids out of that very house for as long as possible by enrolling them in the after-school classes. Then you are in pure luck. All your challenges can be solved by installing a trifecta of PowerPage scenario-based templates. In this episode of Refresh the Cash, Nick and I dive into PowerPage's templates, the good, the bad, and the ugly sides, what they're good for and where they should not be touched. We also answer some important questions such as, are there any assets with the prefix new?
Is numbering your pages bad? And who gets the participation medal? To find out, as they say, listen until the end. And good afternoon, Nick. Good evening, George. Evening here. I'm not sure what time it is for you over there, but based on the sunlight in your background, it looks like it's at least not the middle of the night. No, no, it's early afternoon. Well, it depends. After lunch. So if I fall asleep whilst you're talking, keep going. I'll try not to be too offended. Today's subject is templates. So PowerPage has released a bunch of templates. So we all know about Dynamics 365 portals. If you've got Dynamics 365 installed, the templates are still there so you can provision customer service.
Partners. I think Partners is the most comprehensive one. Yeah, certainly the one with kind of the biggest footprint. Gives you a lot of fun additional solutions when you install it. So yeah, it's definitely the biggest one. Yeah, and then there are some odd kids on the block, like Modern Community. And then there is a Order Return. Yeah, there's a few new ones in there that I have honestly yet to play with. I've been kind of more focusing on the ones that are available to anyone with a Dataverse environment, not necessarily the Dynamics ones. Yeah, yeah. So I'm just getting those out of the way before we jump and tear apart all the Dataverse ones. For a couple odd ones, like Require for No, there is a...
field service one for the customers there is a field service add-on for partners and there's one field service just for the customers it's the smaller ones what i like about those templates is that most of them are functional out of the box you install customer service you've got your case deflection you've got knowledge base you've got your search so it's kind of you need to put a couple pages like a front page maybe something else about us contact whatever you put together a couple extra pages but the main functionality what you picked up template for is already there That doesn't seem to be the case with the new suite of templates that we acquired with PowerPages. What's your take on it? Yeah, I've been playing around with the three main ones that I've been kind of using over the last few weeks. They've got one for after-school program registration. They've got one for building permit application. And another one is scheduling meetings with a financial institution.
And my kind of first impressions when I kind of installed all three of those into my Dataverse environment was it took a little digging to kind of make them work the way that I think they are supposed to work. And there were some places where there were kind of blank screens that I wasn't expecting there to be blank screens. So I kind of agree with your sentiment there where they're not quite the same kind of... polished out-of-the-box experiences that we're used to with the Dynamics Portals templates. Okay, let's take a closer look. Before we dive into those three scenario-based templates, there is a bunch of templates, generic ones, which are called design templates, design-based templates, right? So there is a design one, two, three, I think, is missing, four is missing, five is there, side design one, two, four, five, five, six, whatever. And there is a favorite of mine called Blank.
Just homepage, nothing else. That's probably my favorite template because there are no expectations. There are absolutely no expectations. So those design ones, they just apply colors, a bit of CSS. I don't even know if anything beyond colors. Do they have anything? I think the layouts on the homepage are slightly different. So if you were doing a, you're kind of starting from scratch and you'd maybe take a peek at those different ones to see if there was a homepage layout that really intrigued you. But yeah, beyond that, it's just a customization of the colors. And I think in most cases, it's unlikely that a customer would want it.
use exactly what's there. So to me, it's about kind of picking a look and feel for that homepage and pick one that's as closest to the one that you want to use as possible. Yeah. To me, those design templates are more like, have a look at what's possible and then go ahead, provision blank and design your own kind of thing. Because customers would want corporate colors anyway and their own logo. So it's a moot point to try to insist on specific site design or specific layout. It's just basically learning, yes, you can place product image on the left or on the right and do the column and this and that. And there's a few components here, a few components there. They don't even wire those templates because they're design-oriented templates. They don't even wire data components. So there are no lists. There are no forms apart from contact us. And because there are no longer leads in Dataverse, unlike customer service, so they wire it to a feedback.
table, which is in every Dataverse instance. Fine by me. But those design templates, I kind of buy them. It's okay. Yeah. A few samples, like any other tool or any other, you know, development environment or site CMS system, like WordPress comes with the 2019, 2020, and things like that. Do you use those templates? Of course not. You just take a look at what's available and move on, you know. So now let's take a close look at those scenario-based templates, like meeting with financial institutions. So if I need a meeting with, you know, my vegetable supplier, so I can no longer schedule it. Why financial institution? I got a bit lost.
with the specifics of those templates, like after-school care. Why after-school? What, I can't schedule meeting with university teacher? Very specific of those templates. That's what got me very, very confused.
What I want to ask you, I didn't dig in details to the extent that you did, so I want to ask you, those templates, what's included in the installation exactly? Yeah, so let's say, for example, the after-school program registration. The scenario there is that you've got parents who are going to be registering their children for different courses, as they call them, for after-school programs. And so that template... essentially allows the parents to search through all the different courses. They can then register their children. So one thing that makes it a little bit fancier than just kind of basic event registration is that you can register multiple attendees. So you can kind of manage your attendees, which are your children. So you're not just registering for yourself, you're registering multiple attendees. And these templates also typically include an administration side within the site. So they're not really expecting you to have to manage any of the data in Dataverse or in the model-driven app.
For example, the after-school program registration, the school administrator also has a section of the portal that's kind of meant for them so that they can actually manage the courses. So that's pretty consistent across those kind of scenario-based ones where there's usually at least one or two personas that they're targeting. So you've usually got the member of the public that's using the PowerPages site, but you've also got the backend administration, which they build out as well. If I would do it, I would do it slightly different. I mean, what's the point in spending dev cycles on developing admin UI in...
in Power Pages, whilst you can spin off, you know, model-driven or Canvas app, for that matter, for administration. So that's kind of, I got a bit confused here. What's the advantage from your point of view in doing it all in Power Pages, just because we can? I mean, to me, I know that as someone who doesn't do Canvas apps, I could do a quick Power Pages site a lot quicker than I could do a Canvas app. Probably could do a model-driven app quicker because you have to build the forms and views typically anyways. But I think just, you know, as a demonstration, in terms of licensing, sometimes there's maybe some advantages to having kind of the external users and not having to worry about...
Azure Active Directory users for those people. But I think just having a single unified experience. Another thing, I think the name of this podcast is Refresh the Cache. And so if you're doing everything directly on the portal, you don't have to worry about waiting for changes made in a model-driven app to reflect on the portal. So that would be one little fringe benefit of doing it that way as well. Nice, nice. Because yes, portals are well aware when things change. So no need to refresh. And does it only refresh what's kind of needed? If I modified, let's say, appointments. So only appointment views will be affected, not like a blanket.
flush the cache and restart for the entire site. It's only targeting a specific table. Yeah. So when you're doing, depending on what type of operation you're doing, the cache engine is kind of smart enough to only invalidate what it needs to when it receives those requests through the site itself. So whether that's via the web API or lists and forms or any of those types of things, if it happens through the portal, assuming it's not through something like an action or a cloud flow that's triggering in the backend, but if it happens kind of generally through the portal, then the portal kind of knows about it immediately. Well, that's a big advantage. What about components like model-driven solution itself? When you install it, it would install a solution. So there would be some other component to that table.
or columns or yeah so they install it depending on which which um template you choose they go from anywhere from one to three solutions um those solutions generally include some tables so for example the after school program registration you've got a course table um in the building permit application you've got a permit table so yeah there's usually at least a few tables that it includes um i haven't As I mentioned, all the administration is through the portal itself. So I haven't seen any model-driven apps being included. I was kind of looking to see, hey, where do I create a course? And then I realized, hey, I can do that through the portal. But the other interesting thing that they include is they do include a number of cloud flows, typically. Typically, those are used for notifications. So whether it's notifying people of a registration or of your appointment or things like that. So they do include a number of cloud flows that trigger on those different events. So they are, I think, using these as an example of how you can build a complete...
solution, but I don't think any of them are there to the kind of the turnkey situation where you just install this thing, you know, change a couple colors, update the logo, and away you go. I don't think they're quite there yet. Well, that's always been the case. I mean, when it comes to email templates, for example, invitational templates in customer service portal, it's always been like a blank template with a couple links and go figure and, you know, brand your own template. So that's not an issue for me. The other question was, like, do they use web resources? Do they use PCF controls? How that works out? Yeah, it seems that there's...
The answer is yes to both. The one that I think that's the most... Yes, yes. So the schedule meetings with a financial institution template. What that one, as the name suggests, allows you to schedule a meeting. And the way that it's been architected is actually with a, well, what do they call these days? A multi-step form, previously known as an advanced form, previously known as a web form. So basically a multi-step form where it first asks you to...
where do you want to meet or what kind of meeting do you want? Do you want to be virtual? In fact, I think what it starts off with is ask you what kind of service you want. And so they're using a combination of JavaScript directly within the web form step. They're using, in some cases, PCF controls. They have a PCF control that they've included to allow you to find a bank location based on your zip code. So you type in a zip code and it goes off and does a search and identifies the closest bank location. So they're doing that with a PCF control. And then later on, when you're actually picking your appointment slot,
that appears to be done using a web resource. So they're using all sorts of different things, whether it's web API, just kind of pure client-side JavaScript, PCI controls, web resources. So the one thing I really like about these templates is that they give you a lot of examples of different ways of handling similar type requirements. So I'm kind of curious. I haven't got to the point yet where I've looked through the source code of that PCI control, but yeah, it's cool to be able to see all the different JavaScript. There's a lot, a lot of client-side JavaScript that has been implemented in all three of these.
So the one thing I really, really like about these templates is that with the traditional dynamics templates that were available for portals, a lot of them relied on a bunch of code behind the scenes that we just had no control over. With these templates, Microsoft hasn't added a bunch of things that they could do that we couldn't. They haven't added a bunch of functionality directly to the product that we couldn't have been able to do. So they're all implemented using techniques that in theory we could have done ourselves. So they're really showing us how to extend the product, not how they can implement a solution when they've got the keys to the back door.
Oh, nice. So do they use Web API here and there? Yep. So they're using Web API. For example, in the scheduling a meeting with a financial institution, you can log in as a person at the bank and you can select which specialties you have. So when you're scheduling an appointment, you say, well, what kind of appointment do you want? And so it allows the bank staff to go in there and say, hey, I'm good at investments. I'm good at this. I'm good at that. And so they built essentially a profile screen where a user can update their own specialties. And that's all done using Web API. Do you still guys go for bank appointments in North America? I've been with a bank with no branches for the last, I don't know, 20 years. So, but, you know.
I hear some people still go to the bank. I think my grandma still goes to the bank sometimes. I just had an incident where a client in US, I gently poked them, reminded that, hey, look, we said it's whatever it was, the terms, 30 days payable. And I gently poked and said, just a reminder, you know, I haven't received money. Today, I created a guy's replies and said, oh, it's marked as paid in our system. I don't know what's going on. So let me dig into it. So he comes back day late and said, we sent you a check. So that's very nice of you guys. So we're on good terms. So I said, let me explain to you what happens when you mail check to me.
It takes about anywhere between one to two weeks for the check to get here. It's just a mail, right? So it gets here. So I opened the envelope. I still have the envelope. I can show it. So I get the envelope. I take it to my bank. My bank says, well, this is great. They stamp it with something, something, saying, yes, we have received it. And they're saying, yes, you're about to receive X number of dollars, US dollars. So let us mail check back to the bank of...
sender for clearance. They put a special stamp. We need clearance and this is our sweep detail so you can wire that money. So the check goes back and it takes anywhere between two to four weeks for the check to get back and they guarantee like six to eight weeks the check clears out. So they sweep the money to my account and guess what happens then? They wire the US dollars, right? And then my bank probably takes anywhere between...
three to five, I'd say, percent of that on exchange rate and say, here's your Australian dollar. So by the time it's done, we're eight weeks late and 5% less. I said, what do you mind guys paying just my credit card? And lucky for me, that client obliged. And I have a checkbook and it's been issued 20 years ago. I have only one check issued from that checkbook. I paid myself $1 just to test that it's working. Never used it before. Never used it since it's like, so yes, appointments to the bank. So we've got a bunch of examples how to do things. Probably some examples of how to do things.
I was just about to say, do they have examples, good examples how you shouldn't do that? Yeah. So, I mean, I think these templates have been developed by various different teams of people that I think some people on the team may have had some, some power apps portals experience. Other ones might've been new to it. So there are.
interesting ways of doing things that I don't know if I would have thought of how they did that. So for example, a lot of the search interfaces, whether it's for the afterschool program where you can search courses or the building permit applications where you can search through the different types of permits you can get. The way that they do it is they kind of build up this giant, this form where it has all the search criteria. And then when you click submit, what it does is it does a URL replace and refresh with the query string parameter so that it can then fire through the fetch XML in Liquid to show the results. I was like, well, that's, I mean, I guess if you want to do a page refresh every time the...
Every time you click the search button, you know, you can do that. I probably would have done more of a, back in the day before we had Web API, I probably would have done a little JSON service or now that we have Web API read operation that way, but you know, it works. The other one that I thought was quite clever, and this was something I'd never heard of doing before is, and again, I think this is in the afterschool program registration, where they've got the forms for editing a course. And what they're doing is they use the basic form to display the form. to grab all the data and kind of display it. But when you click the submit, you're not submitting the button from the form. It's actually a custom submit button that they then manually kind of grab all the information from the form and then use the web API. So I've never actually seen someone use the basic form for basically all the layout and to pre-fill all the information and then use the web API to...
to actually save that information back. So I thought that was kind of clever. And where it really kind of helps them is they have the ability to copy a course. So they can basically put an edit form on something, but then use a web API to instead of doing like a put operation, they can just do a post to create a new course. So I've never seen anyone actually use the basic form to kind of load the data and then basically take over and use the web API to do the complete update or post operation. Interesting that you mentioned that we were just talking.
about implementation, about some particular implementation yesterday on the portals. And the idea I floated is that even if I work with something complex under the hood, like we were talking about Dynamics 365 marketing, what would it take to develop, let's say, a portal, a power pages? portal for marketing, not Angular app, but actually PowerApp. And I said, look, when it comes to complex forms like registration or registering multiple people, you're not even writing to the tables because they use marketing API to create, to set aside records somewhere in Azure.
And then when you commit and pay, they convert to the actual registration. So it's a long process. And I said that the way I would implement it, I would implement a fake table. Fake, not in terms, I wouldn't make it virtually anything like that. I would implement a table with the sole purpose of collecting information. And once it lands in Dataverse in my table that has no meaning beyond collecting information from the webpage, then I fire up flows, I fire up, you know, whatever I need to plugins. And then I kind of shove it into different tables, into different compartments and do the actual update.
uh that's what i would do like with the complex updates and even with situations like what you're saying immediately what pops in my head is um ability to redirect your saving operation elsewhere creates uh possibilities uh to do something like templates so templates become like appointment template becomes uh just an appointment of specific type and you just copy all the information but let's save it elsewhere saving to different tables. So there are multiple ways to do it. I don't see any specific advantage of intercepting and piddling because that means increased complexity in JavaScript. That means lower maintainability. Even now, portals kind of give me a headache because when I see something done by JavaScript, I know something done by JavaScript. My immediate question is, where is this JavaScript? I can't even tell if it's in the file, if it's on the form, if it's on the page, if it's a liquid template JavaScript.
at least like three or four places to have JavaScript. And we should have separate conversation. What's the best way to do it? To me, it's a complex. There's no prescription where to keep the JavaScript. You have to learn how to maintain it. So delegating complex stuff to JavaScript. A, you're opening yourself for maintenance nightmare. B, for a great nightmare. Let's say Bootstrap 5 comes along at someday. Oh, maybe not Bootstrap. Something else comes along, right? It's all going to be broken.
Yeah. And so to answer your question, where do they keep it? The answer is yes. In all those places that you're talking about, they're relatively consistent. If they can put it into a form, whether it's a basic or a multi-step form, they'll put it into those steps. But yeah, they leverage web templates quite a bit. So often what they'll do is say on a search page, they'll have the kind of the shell wrapper, the main kind of divs to kind of lay out everything in the, say the content of the page itself. But then the actual JavaScript will often be kind of put into a web template and then just include it using the liquid include field. That's in text.
So in my kind of exploring of all these things, I'm basically using the portal code editor in the XRAM toolbox to just kind of click through and looking, you know, where it's all this JavaScript located. Because, yeah, there's a lot of it. They've got JavaScript that, say, generates calendar invites. So, like, when you book an appointment, there's a link that says, hey, click here to generate an iCal event, essentially. So they're doing that in JavaScript. So lots of interesting JavaScript techniques. But to be honest, to me, it's...
It's kind of par for the course. We do see this a lot. We work with a lot of partners and they kind of go through and they build out their first portal and they ask us to take a look at it. And that's kind of what it looks like to me. It looks like the people who are, you know, obviously smart developers, maybe are kind of new to the platform and they're just figuring out ways to, someone gives them some business requirements and they figure out how to get it done with some JavaScript. So I see a lot of that there. So whether everything's done the way that, you know, I've seen it done traditionally, maybe not, but I do see a lot of people coming up with creative ways to solve the business requirements that they were given. Interesting that you mentioned, again, in the conversation about Dynamics 365 marketing portals.
The question popped up. Someone asked, so why is it Angular? I said, probably because they had a couple of really smart guys who knew Angular at a point in time, and they were comfortable, and they delivered, right? If those guys knew React, you would see React. If those guys knew Vue, you would see Vue. If those guys were like raw JavaScript or TypeScript, you would see raw TypeScript. So whatever resources you have and whatever skills they have, that's what they tend to produce when they operate in the environment that is foreign to them. So they stick to what they know, and they deliver the results the way they know, like techniques like virtual.
tables or intercepting something in a plugin wouldn't even occur to them because they don't know how to. They've never done it before and this technique is foreign to them. They don't know Dataverse. It's easy for them just to stick to JavaScript, figure out what to do in JavaScript and just deliver everything to Dataverse. Any new underscore prefixes? I didn't see any new underscore prefixes. I think the prefix that they are typically using is M-S-D-Y-N-C-E is the prefix that they're generally using. The one thing that drives me a bit crazy is
As an example, in the scheduling a meeting with a financial institution. when you install it, you'll get all the pages that you need, but you'll also get new page nine. You'll get new page seven. You'll get new page six and new page five, new page 11, new page 10. So clearly someone, whatever environment that they extracted this, the portal data from, someone was kind of playing around with, they created some pages in the, in the portal studio. Ship, ship, ship, ship, ship. And they, they didn't clean those up. And it kind of, so that kind of bothers me that you've got all the way up to new page 11 in there. Hopefully someone takes a peek at that because there does seem to be a bit of residual junk in there that probably could get cleaned up. I don't actually mind if those pages serve the purpose because to me.
let's consider the side design so you've got side design one side design two four five whatever the numbers are To me, that's kind of the same as if they called like astronaut theme or, you know, Ferrari theme or firecracker theme. I have no idea what those, like people come up with some random names about their themes and which don't resonate with me at all. So to me, it's like, oh, two is the orangey one and five is the bluish with the line in the middle. That's enough for me. So I can associate numbers instead of associating some random names. I think WordPress got it brilliantly. Like what year it is, 2023? So yeah, template will be 2023. That's what the template is going to be called.
It's going to be slightly different. It's going to be called that. So I don't mind if those pages serve the purpose. I wish I could tell you they did serve a purpose, but I just went through them here. And most of them are basically the blank page. You get kind of the default content in the content thing. So it's like a row, a container, and then a 12-column layout. One of them has a entity form tag, liquid tag in there with no name in it. Yeah, it kind of looks like someone was playing around in there and they didn't clean it up. Well, maybe they were pushing the limits, like 12 columns. That's a limit on the boxed layout in Bootstrap, right? So that's a 12-column layout.
Overall, if I have to rank, give me your score on the templates. Let's separate design templates and scenario templates. So scenario templates out of 10, what's the score? I think as a tool to train and to learn, probably an 8 out of 10. But as an actual, hey, I'm a financial institution. I should go install this portal. I would say that they are a good thing to learn and train on. Use it as an inspiration for doing it in a more polished way. So participation medal. Participation medal, yeah. Better than nothing.
Site designs? What's your ranking on that one? I would echo what you said earlier, where every content management system has these different designs. It's more on the sales side. Hey, look at all these different designs we can do. So I'll probably be sticking with the blank page or the starter portal because I don't want that extra junk in there. But I do think that they're a necessary evil. I get why they're there, and I'm not going to throw too much shade in their direction for having those there. Well, on my books, I'm going to rank blank templates. That gets 9 out of 10 for me.
It's the best out there by far, and it's almost flawless. Almost flawless. I think that's rounded up. We still have our good Dynamics 365 templates if you've got your solution, so you can stick with that. I wouldn't expect them to get any updates beyond Facelift. Maybe they'll invest in Facelift. That's my only expectation. There would be no functionality changes as far as I'm aware. And then there are new templates. Go install, learn, throw away, start with blank, do your own. If I could just ask one thing of everyone.
If you're going to play around with these, do not install these in your dev environment or any environment that matters to you. Install this in a trial or some other environment that you're going to throw away. We just see a lot of people say, I want to try a portal. So then they install things and they're like, oh, I don't want this anymore. I want to uninstall this thing. That is a pain. You've got to delete data. You've got to uninstall solutions. So play with these things, but play with them either in your, you know, I do most of my playing in my developer environment. Do it in a trial environment, but don't play around with these in your dev environment. We see a lot of people that think their dev environment is, you know, sandbox, a playground. It's like, no, that's almost your most important.
that's where your unmanaged solutions are. And you can create all these nasty dependencies where now you have to maybe install these things in upstream environments just to get solutions to move across. So play with them somewhere else. That's a good, very good advice. So I'm going to throw in and add tip of the day on that one. So in any environment where you're pushing the limits in terms of storage, as we all do, I have a number of instances just to sit on the side doing nothing except taking up storage.
The advantage of those instances is that I can reset them. I can no longer provision a new one because it's tight. It's just balancing between just under, just over the waterline. But I can reset instances without any problems for now. I think this gap is going to be closed at some point, but reset does work just fine. So for me, playing, I would be taking one of those instances, playing with that, installing playing, and then resetting the instance completely. That's smart. We might want to cut that part out of the podcast so that Microsoft doesn't find out. I'm sure Matt Barber is listening.
I'm sure. Well, I wouldn't bet on that, but Dilip might listen. So I'm sure they're well aware of the limitations of the storage system. Not limitations of the storage system itself, but accounting around storage. And that's deliberate. Like the moment you go over, it's not a big deal. And with the trials, that's our payback for the web resources being six gigabytes inside. That's our payback, right? So we have to...
claw that back somehow. There's web resources and ribbon, two gigabytes ribbon and six gigabyte web resources on customer engagement apps. So somehow we need to get that back. So that's our way to claw just a gigabyte back here and there. Seems fair to me. Yep, it's a fair trade. So on that cheerful note, we ranked all the templates. Thank you very much for your time, Nick. And I'll talk to you next time. Yeah, thanks, George. Enjoy the rest of your day. Enjoy the warm weather and the leaf blowing. And I'll try and stay warm here.
Crazy cold Canada. And do some curling or snow. What I'm looking forward to is in a couple of weeks, I'm going on a hot vacation to go golfing because I can't stand this weather anymore. Where are you going? Palm Springs and a little city. I don't know if you've heard of it called Las Vegas. That rings the bell. So we might do the next podcast out of Las Vegas. Oh, that sounds good. That sounds good. Okay. Bring your decent road mic and we'll do the podcast out of there. On that note, thank you very much. Enjoy the rest of your day. Thanks for having me.