Skip to content
Power Apps portals webAPI and virtual conferences episode artwork

Sep 20, 2020 31 min

Power Apps portals webAPI and virtual conferences

from CRM Audio Hosted by crm.audio

Colin, Nick and Nick are back from summer vacation and chat about the portals WebAPI currently in public preview. Portals WebAPI (Microsoft Docs) 2020 is the year of virtual conferences, and Power Apps portals are no exception with Power Portals Saturday and Fall/Spring into Portals conferences. Power Portals Saturday (YouTube Playlist) Fall into Portals Colin Vermander @koolin_ Nick Doelman @readyxrm Nicholas Hayduk @Engineered_Code Sponsored by 365.Training

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Power Apps portals webAPI and virtual conferences

0:00 31:18
of matches

Transcript Auto-generated, may contain errors

Welcome to Refresh the Cache, the Power Apps Portals podcast with your hosts, Nick Dolman, Nick Hayduke, and Colin Bermander. Well, here we are after our summer break, returning once again with another exciting episode of Refresh the Cache. We're all back. Hi, guys. How was your summer? Mine was excellent. It involved lots of beer and a dock.

So it was quite lovely. Yeah, it sounds great. Mine was pretty good too. Mine involved a lot of golf, which is great for physical distancing. So between work and golf, it was a pretty busy summer. Cool. I kept working pretty much. No time off, Nick? No, no time off. No, it's hard. My boss is a real jerk. Keeps me going. So here we had a little bit of audio trouble with Microsoft Teams. And that's what we use for recording the podcast. So, you know, the typical chit chat. And then we dove into the Power Apps Portals web API. So we just started the conversation. So we'll just join in where we left off.

Once you kind of go through the steps and set it up, it just works. You can create records, update records, and delete records, and yeah, we go without having to do an entity form refresh or a web form step. And they've provided a wrapper function and everything for you to execute things with the token. So it makes it quite easy to kind of just get up and use right away. It's like using any other API if you're familiar with JavaScript and APIs. It's just simple Ajax requests that you're making with a wrapper method. So it's nice and easy to use.

I think the only thing I have not liked about it is the mechanism of protecting it. Not so much that it's protected, just about how you have to go configuring it. Then it's this big wall of site settings that you're going to start to turn into as you start building out APIs in your portals and you got to put the fields in there and everything. It's not a nice interface. It could be done in such a much cleaner UI or user experience type of way. I think that's true for a lot of things in the portal management app because you're dealing with the model-driven app scenario, which works well for a lot of things. But portal configuration, even setting up, we've talked tons of times about setting up.

uh entity lists or web pages or entity form steps like using that interface you're jumping around a lot you're adding a lot of records you're taking you know one step forward two steps back relating all that stuff that's where the portal studio work like that's where it's helping you don't have to do that jumping around but you still have to go into the portal management app and but i think in terms of the the web api uh this is something that um you know like something i would like to do myself but maybe we can try to convince jim our friend jim novak to build an extra toolbox tool to help configure that that's exactly what i was thinking get to get jim to do something yeah i'm much happier that they that they decide to release it and not say, well, you know, the interface isn't great. So like, you know, we'll hold off for another six months. But I think a perfect place for this to end up, and hopefully this is kind of on their roadmap, is for it to end up in the same kind of place where you can configure the authentication right now, right? Like not all the new interfaces are going in the portal studio. They're still kind of just like the make.power app. So hopefully we'll see it in there. But yeah, I'm glad they've kind of pushed forward with getting it released and not worrying too much about that UI. But yeah, as Colin mentioned, it is, you know, there's lots of magic strings and it doesn't, it's pretty easy to copy and paste something wrong. I know I'm working on a project right now that involves a lot of copying and pasting. And apparently I'm not very good at it because, you know.

Control C, control V, Nick. No, no, no, no. Control V is so old school. You've got to use window key V. Oh, so you have your whole clipboard. You have the clipboard. So what happens is you see everything that you've cut and pasted in like today. That to me has been a lifesaver. I'm going to submit that as a Gus Gonzalez two-minute Tuesday maybe. But I think my emails to him go directly to my junk folder. So, yeah.

but uh well yeah so now the other thing too is which i think for somebody that's maybe hasn't done a lot with portals and you know they're a developer and they're going into this they see oh there's the create there's the update but then they're like wait a minute we're missing this isn't full crud it's cut where's the read statement and there is no like there's there's posts and put but there are no gets um and i know that when we were seeing this in the early preview we were asking okay where's the read and then we kind of came to the conclusion well you can do the reads and liquid using like a fat shore an entity object and things however because it's all server side You know, you have to set that up ahead of time. So you can't just go do reads on the fly. So I think that's something, you know, they, you know, hopefully we'll look at as a way. Like, definitely we can work around it right now. But that's just sort of something that kind of jumped out to me immediately. Like, wait a minute, it's missing something here. Yeah, and you can do reads on the fly, but then you have to set up essentially what is your own little service by, you know, passing parameters to a web page that, and I know Colin's got a blog post on this. I think I may have touched on it a little bit too is, I mean, you can kind of create your own web service, but it seems like, well, now you have two different things that you're kind of hit, two different endpoints.

It's like, why can't we just have one? I think they probably intend on it, but again, I would go back to applauding Microsoft for getting something out there because we can make do for now, so it sure is nice to have that functionality there. Absolutely. Yeah, I don't know. When you write a web API, the first method you're writing is the get. You're not writing the update or the create right away. Usually you're writing a get. And it is super weird that it's not there. You have everything else coming back in a standard API format and everything. For you not to be able to go out there and get a list of JSON contacts and stuff, it's super weird. Or forcing you to go do that weird liquid template with the weird return and the fetch XML and the weird formatting of your own JSON and everything.

from a developer standpoint, from them working on the portal source code, this was not a hard thing to do. Yeah, so I guess I'm kind of curious as to how they implemented this underneath the hood. I'm just wondering if the permissions or the performance issues with trying to apply the entity permissions, because with the create and update, delete, you're only dealing with a single record that you have to enforce those permissions on. So I'm wondering if you try to bring back 5,000 contacts on a no data query, whether that's just more complicated than I think. I mean, EntityList has a service already that pulls through permissions and asserts things properly. So like the code exists. But that's why appending FetchXML to existing FetchXML.

They've got to probably be doing something like that. Is there a way that they might be just tying that in directly through the existing OData service, maybe? Maybe. Then they can't apply those permissions in the same way. I don't know. Just a thought. You do realize, Colin, it's all your fault because you wrote that blog article on retrieving data with OData in that service. Yeah. So they're like, oh, well, why would we reinvent the wheel? Colin's already got this work around. For sure. Blog post is definitely one of the highest ones that people view on my blog, for sure. So I guess it will continue being that way for the next little bit.

But at least it's a portal-related one and not like Nick Doman, who your number one is still what, SSRS reports? It certainly is. Actually, my ALM for dummies one is still creeping up there. Well, and I get a lot of comments. Well, still a lot of great questions in the comments. I think that's probably my most commented one. It's using all the deprecated build tasks. I actually need to, I think, because I wrote one that was based on PowerShell, then I wrote another one based on the Azure tasks. I called it revisited, so now I need to do a revisited one on the new stuff just to keep on top. I even had the program manager, what's his, Per Mickelson, I think, even commented on it.

uh you know pointing out a couple things that you know they would prefer it to do as opposed to but i'm just trying to keep it simple because a lot of people honestly on alm i know a lot of partners they're still exporting their solutions manually and importing them in their production and they're not keeping proper backups or anything like this well that's better than a lot that we see that they don't even have a dev environment so oh yeah there's um yeah so yeah interesting how that um yeah this isn't the alm podcast although if you guys want to do one we could probably do that too sometime uh So what are we talking about blog posts? Oh, yeah, the number one hits and all that other stuff. Yeah, my number one is still probably the multi-select. So I just want to let all the listeners out there know that very recently we have been pushing Microsoft to try and get multi-select support in Portal. So we're doing everything we can to try and get that as high up on the priority list as we can. So if you had a choice between multi-select and the new file attribute, which would mean... Multi-select, 100 times. Multi-select, yeah. I mean, the new file attribute is cool. Multi-select would be easy, low-hanging fruit. The file attribute is not going to be as easy for them to do, I think.

But they honestly should, as soon as like an attribute type collect that comes out, it should be supported through all of the app types and the portal being like one of the top app types now, it should be there. Like there's no excuse for those things not being there. Yeah. Yeah, I agree. But again, it's sort of like the balance, right? Do you get something out the door that people could start using or do you hold off until everything is ready? Yeah, I think the multi-select, like people have gotten around it with the many to many relationships and everything. So there is like this workaround. It's not like the most beautiful thing in the world, but.

Yeah, we just I don't know how many times even the last couple months we've been working on a project where, you know, it's a portal that's been added to an existing implementation where they just have a bunch of multi selects. So it's like, well, it's kind of too late to do that. And so, yeah, like I've got a blog post that covers that where you can kind of have a hidden attributes. And yeah, it works. It's just why isn't that a feature that just works.

I'm going to ask, what do you guys find is the coolest about Web API? Like, what are you going to do with it? Like, now that it's available, like, how are you guys going to use it? I think, for me, the editable grid, because I think you guys saw my blog post on using Flow kind of as an API to update from the portal, which, of course, has a huge security hole. But actually, it's funny, because since then, I actually found using, I found a work, like, actually using...

the Azure API services and things like that. There is ways to secure that now, but it's kind of moot because with a web API coming. So there's a case of allowing users to update multiple records on a single page without having to navigate away or open up an entity forum to update something like that. So to me, it's like, yeah, and it's kind of a pseudo editable grid scenario. But I could see another one being something like you can now implement a more realistic shopping cart. I wouldn't, again, wouldn't build a full-fledged e-commerce system on a portal, but it's now more feasible to do even a lightweight kind of e-commerce system.

using the web API. Yeah, for us, I know that there's just lots of little interactions that we wish we could do with the database, like we're building one right now, where it's just like, have a like button or a rate button. And I mean, the out-of-the-box ones are, they exist, is what I'll say about them. And so just having little things like that, like save this page for later, and just all those little things where it's going to be one call, it's going to be one create, it's a really simple thing to do. But just before, I never got much into the hidden iframe web forms.

click submit buttons with JavaScript, like that was always an approach that just made me feel dirty all over. So I, you know, I tried to never resort to that sort of thing. I'd much rather do a companion app if necessary than, you know, hidden forms submissions. But yeah, if you just have a couple of those, it's tough to kind of add the overhead of a companion app to a project just for little things like that. And now it's just like, you don't even have to think about it. I mean, it's aside from the code that Microsoft gives us to do the authentication bits, it's really just like a couple lines of code, create the record, away you go. Yeah.

I think what's common and same for me is we all want to create components. You want to create like button, save this page button, you want to create an editable grid. This has enabled us to all really create our own components basically. I think that's where I see, I can't even begin to think of the list right now, but I see a lot of potential for shareable reusable components. I think that leads into, wow, if we have an API, can we start doing PCF controls? That's on the release plan, right? Actually, we can say it.

We can say we know nothing more than the release plans that say that they're working on it. Yeah, and that's about all we know at this point. But you can see how they're getting there. Maybe this is not what they actually want to deliver. They wanted to deliver a PCF. This is just a stair on the way to PCF. In which case, having a big retrieve multiple and all that sort of stuff probably doesn't matter that much.

I guess, yeah, because you're bound to the form. So, yeah, I guess we'll see. It'd be interesting to see how it's implemented for the portal. Okay, so question for you guys on that. In my opinion, I think it's going to be difficult to ever have PCF controls that are really going to work across the different app types. Do you guys feel like it's probably going to be like, yes, it's a PCF control, but this is a portal's PCF control? Is that where we're going to end up? I think so. Initially, anyway, I think it's going to be we're years away from you being able to go in and create an app.

And then you sort of pick whether it's going to be your target is going to be the portal or a model driven or can't. Well, I first I see the concept of Canvas app and model driven app going away. Eventually, you'll build a an internal app, whether Canvas app will have like a view and form components that you add to the canvas or vice versa. But once you start considering getting web pages on there, it's not like you're going to be able to build an app and say, well, here's my portal version. Click. And here's my internal model slash canvas version. So I agree with you, Nick. I think.

I think PCF, well, I don't know what your opinion is, but I think initially for the next, once PCF controls are available for the portal, when you develop one, you'll probably need to develop one specifically for internal apps and one for portal apps. Yeah, I definitely agree there's going to be some difference on the first release of PCF for portals. The portal has always been like the form you have in CRM, you should be able to also expose on the portal. So there will be this expectation of like, this works in CRM, why do I have to do something special for the portal? They're trying to remove like their...

developer barrier in a lot of ways and make it easier for people to self-service their own portals and do their own form. I feel like they have to get there where I have these controls on my form and in my model-driven app, these controls also work and exist on the portal. Maybe there'll always have to be something somebody does to that control to detect app type and if this app type use this context, if that app type use this context type of thing, but they might figure out a way to take care of that themselves by detecting or asserting some sort of an app type when it's rendered. I think you're definitely right. They will not get it on the first release. But yeah, I think they have to go there. They have to get it so that it works seamlessly. Maybe part of that is next year they'll announce that the portal is going to get rewritten with the Fluent UI, right? And then everything will just work. And then they'll rename it. Yeah. I think they're kind of down too far in the rabbit hole.

But you never know. I mean, they can't stay on Bootstrap 3 forever. I mean, they've already been on it forever. But at some point, right, at some point, they have to come up with some sort of strategy. Yeah, I've used Fluent UI and website. I'm not sure it is the greatest for an external facing site. It's great for internal applications and like that. But yeah, like Bootstrap, the sales pitches, it's got a huge following. And the theming community around it is huge. So I just think it's difficult to have controls that.

would work without having that like, yeah, so I think that'll be, and to be honest, I don't think it's necessarily, it would be a bad thing to say, hey, this is a portal component and, you know, maybe if it is something really simple, like it could work on both, but I think, you know, the types of controls you'll be targeting for one, I mean, yeah, there'll be lots of overlap, but I think we'll be in the, this is a portal one for a long, a long time. Yeah. Well, yeah, maybe when you publish a control, you're selecting the app types that it works for. Yeah. So I would expect the simple dials and stuff, like the progress bars and whatever they have show up, I would expect those to just transpose one over. But the more complex controls are definitely going to struggle. And I'm assuming that this first batch of PCF controls are probably just going to be targeting the fields versus replacing entity lists. That's my guess anyways, right? Well, we're speculating purely at this point. So hopefully we'll find out. It's coming, so we'll see. Cool. So we talked about the Web API. The other thing I wanted to mention as well,

You know, this is kind of funny. If someone told me two years ago that there was going to be a conference or an event 100% dedicated to portals, I would have laughed. Like, no, it's always like, you know, not even like even a track would be kind of questioning. So, yeah, you always have a few portal sessions. It was delivered by, you know, probably a dozen of us or not even half a dozen of us at different events and things. So there was a 365 Saturday. Now, of course, we're living in a completely virtual world. There's virtual events happening pretty much on a weekly basis, if not like a couple times a week.

I spoke at DynamicsCon last week and there's a few others. We have the Power Platform 24 coming up in October. And we also have our fall into portals coming on October 15th. And I'll get to that in a second. But there was a 365 Saturday. And that was actually held, I think, last weekend or two weeks ago. It was over the Labor Day weekend. So I didn't get really a chance to check it out. But we'll put the link in the show notes. But that was organized by Arpit Stravista. And sorry, Arpit, if I didn't quite pronounce your name right. And I know Victor Dantas was involved in that too. And there was a whole whack of, it was 100% dedicated to Power Apps Portals. And it was the Power Portals Saturday.

So we'll put the links in the show notes. You can check out it's on YouTube. They have all the sessions there. So probably some good learning opportunities. So congratulations to those guys on that for organizing. And so we're also coming up. We have, like I said, on October 15th, a fall into portals. And we've had, we closed our call for proposals. I was closed last week on Friday. I saw the list. There's a lot of really cool sessions. And I think it's going to be, I think we're kind of committees kind of deciding tomorrow, but there's a lot of, it's going to be really hard to pick some of these sessions, some really great speakers, some new speakers as well. You guys have seen the list, I believe.

And maybe without, you know, like I said, we haven't selected anything yet. But what do you guys think of this whole idea of this conference coming up? I think it's pretty cool. Yeah, I definitely wouldn't agree with you. I wouldn't have thought there would be a portals conference necessarily two years ago. But, you know, now it's big things. So you've got to have a conference for it if it's big things. Well, you've got to do a virtual conference. Like, you know, everybody's doing a virtual conference. So it's like we've got to be in on it, too. It's like everybody does a podcast on something.

that's true uh now that the gym's open i'm getting all caught up on podcasts um actually you know i want to i want to do a shout out to uh um talk about podcast um um megan megan walker and lisa crosby i don't know if you've listened to their podcast the up podcast um again it's based on power platform dynamic 365 but they have a completely fresh take on it um it's actually it's quite entertaining um and they like publish a podcast every week which kind of puts us to shame in a really big way but i think if anybody gets a chance it's the up podcast just check it out i'm not sure if you guys have heard it yet but so we're just not the chatterboxes like they are okay cool And just trying to think other new stuff. Like I said, speaking of having a bad schedule, Microsoft Learn. You guys use Microsoft Learn to learn new stuff, right? Every day. Every day. Not that much, but it does show up a lot in the Google search results when you're looking something up. So I don't go and seek it out necessarily, but it definitely has content.

pops up yeah so uh as of probably a month or two ago the content specifically for power apps portals has been updated um completely refreshed so it's not all based on dynamic 365 portals anymore um there is a there actually is part of we talked about earlier about the the querying getting the old data there is a lab or an exercise in there where you can go query the data and display that on a uh using um another third-party uh forms javascript library and displaying a forum on a portal page so lots of there's the i think there's twice as much content there's three learning paths If you recognize the voice on some of the videos. Yeah, what sucker did they get to do that content for them? Yeah, yeah. Probably some people that was kind of desperate for work. But definitely if you're learning portals, check that out. And then again, so actually I don't know if I even told you guys. So this is another thing. So we actually have a sponsor for our podcast. Do we really? We absolutely do. Wow, this show is brought to you by. This show is brought to you by 365.training. Oh, cool. Yes, we know those guys. Yeah, so definitely if you want to do Power Apps.

Power Apps Training, whether it's Power Automate or even portals, whatever else, definitely check out 365.training, a proud sponsor of Refresh the Cash podcast. Yeah, they have really good content and just down to basics and all the way up to kind of advanced as well. So you're saying I can quit my day job? Because of the sponsorship? Yeah.

Probably not. Could be cutting it close. You want the kids to eat, right? Yeah. Use the code 365NIC, 365NIC, and you will get a 30% discount. That's good until the end of the year. So, yeah, it is paid training, but it's definitely, it's organized, it's focused, it's professionally reviewed and things like that. Can I use that same promo code and tell people it's for me? Absolutely. Absolutely. It's perfectly all good.

Cool. So kind of wrap things up a little bit. So what's going on in the next few weeks with you guys? Colin, anything exciting happening? I mean, the Fall for Portal is kind of the big next thing I'm looking forward to. I guess next week's Ignite. Hoping there will be some cool business applications news there. Yeah, I think looking forward to the Fall for Portals.

and seeing the content that's at that event. Otherwise, no, it's gotten cold here in Canada quite quickly. Yeah, well, I think what we're going to do is we haven't finalized it yet, but we're hoping actually to have the conference kind of split in two sessions. And the second session, if it's more based for Australia and New Zealand folks, it might end up being called Spring into Portals. There you go. That's good. Nick, what's going on with you? Any community stuff coming up? You still doing your community call?

Yeah, yeah. So I got the community call next week on the 24th. I'm speaking to the Perth Dynamics 365 user group on what would be the 23rd for me, but I think that's the 24th for them. I'm not sure they're in the future over there. In the future, yeah. And then I believe I've got a session at the Community Summit virtual conference, which I think is that first or second week in October, where I'm going to be talking about portals and how they've been used for the whole kind of pandemic response. So I've got a session for that as well.

That's right. Cool. I have three sessions as well at the UG Summit. Plus, I actually am doing, if you're interested in live portals training, I'm doing a day. Portal training, still lots of spots left. So check out the UG Summit if you are going or attending virtually. You can use that as an add-on. And I have a few, I think, one session on portals, one on ALM, and one on AI. So I'm talking about everything and everything that week. And then at night, I'm actually on a table talk as well with a few other MVPs, more on Power Apps.

So that's like a half hour session. So but that apparently is almost full in terms of booking. So that's kind of cool as well. Portals is power apps, right? It is. Absolutely. And it's so much so much other stuff as well. Cool. All right, guys, we'll wrap this up. Thanks again for joining. And we're hopefully now that the fall is here, we'll get into more regular schedule and always remember to refresh the cache.

Frequently asked questions

How long is this episode of CRM Audio?

This episode is 31 minutes long.

When was this CRM Audio episode published?

This episode was published on September 20, 2020.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this CRM Audio episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.