Posts

Customizing your Portal from VS Code using OSX

Image
STEP 1 Go to extensions and Install Power Platform tools on your Visual Studio C ode STEP 2  Install .NET SDK STEP 3   On VS Code, open a new terminal STEP 4   Write the following line on the terminal to authenticate your environment sudo pac auth create -u [Dataverse URL] STEP 5   Identify your website record with the following command: sudo pac paportal list STEP 6   Download website content: sudo pac paportal download - -path / -id [WebSiteId-GUID] Once the website is downloaded, you will see a successful message on the terminal and all the Portal data display on your VS project.             STEP 7   You can edit the files directly here and update them on the portal from the Terminal, for example, I will update a Content Snippet to change the size of the logo image STEP 8 So I will do an update on my Content Snippet file to change the company icon size. If you have issues writing files on your visual studio code proje...

Power Pages, Overview for Portals developers

Image
Hi folks, as you already know we have Power Pages in Power Platform, and as a Portal developer I would like to share some things that I found interesting. Edit more than 1 WebSite at a time You can edit more than 1 site at the same time, this is a great feature because in the previous version when you install a Portal from PowerApps you can only edit one at a time. If you are familiar with Portal Metadata it's like edit each Website separately. Additionally, another advantage of this functionality is that if you have more than 1 developer working on the same page, you can duplicate your site and use it like branches.  Choose between different templates or from Scratch These are good news for functional or citizen developers because you can choose to begin your project between different templates. This option wasn't before, it was the same template for all new Portals. Also, you can see a preview of how the site will look on desktop and mobile devices. Portal Edition The way to ...

Portal (Power Pages) WebAPI & forget about clearing cache

Image
Portals WebAPI is another way to execute CRUD actions on Dataverse from Power Pages and is mainly used for customizations. However, t his is not configured by default. How do you set it? Go to Portal Management > Website > Site Settings Create the following new site-setting records per table "Webapi/[table name]/enabled"   where the value is true  "Webapi/[table name]/fields"    where the values are the fields used, separate these by a comma or asterisk * to select all fields. "Webapi/[table name]/disableodatafilter"   where the value is true or false depending on the requirement Webapi/error/innererror"  where value is  true Security The good news is that all restrictions on your transactions depend on what user is signed and which web roles have been assigned because they rely on your Table Permissions configuration. Actions Allowed: GET PATCH PUT DELETE POST For example: function Update ( _id ) { var record = {}; record .[ fie...