web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Power apps portals - w...
Power Pages
Unanswered

Power apps portals - web development question

(0) ShareShare
ReportReport
Posted on by 9

Hello Community,

i have some expirience with power apps, but never worked with portals. Now I am trying to create a portal to see what possibilities the platfrom offers. I'm thinking about few cases, but is hard to find any information about it.

In case when i have a wepage wit large amount of javascript code:
1. It is posible to manage somhowe a project js files structure (fodlers, parents child hierachy etc.) or this files need to be saved in Web Files entity ?
2. It is possible to install js librarys from npm or i need manualy add correct files ?
3. There are any limitions abuout type o files that cannot be added as Web files ?

In case when i need to create complex UI:
4. It is possible to create custom controls/components and add this control to toolbars like Power Apps canvas apps components ?
5.  When i need to create custom notfications, modals or wizards functionaly it is simpler, the same or harder than during normal web app development ?

And finaly general questiona about portals:
6. It is possible to have version history lik in power apps with ability to back to previous version ?
7. Could Power App portal be a port of solution like Canvas App. Does import/export between environment (Dev/Test/Prod) is possible in case of Power Apps Portals ?
8. It is possilbe to automate deploys between environments using AzureDev Ops ?

Thanks in advance

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    Hi, please see if below helps you:

     

    1. I normally create a project under my source control with JS / Web Templates / Custom HTMLs etc.. you don't have to do it, it's optional, there is a tool in XrmToolBox to view/manage the code applied to your Portal as well, you can check that out - whatever method you chose, in the end, you always have to add your code into the Portal/CDS records
    2. not directly, you need to either download/upload as a new Web File, or reference the online path for the library in your Portal code (usually Tracking Code content snippet or header/footer Web Template)
    3. well.. by default you cannot upload a .JS file as attachment, that's a simple configuration on your CDS environment but that's not my recommendation. what I normally do is keep the .JS restricted and rename my file to a different extension (.ES or .MYJS) so you kind of trick CDS, but you can still reference your library in your Portals code
    4. no (perhaps the answer is not yet).. Microsoft is working on enabling PCF controls in the Portals - most likely to be in Preview in December 2020, so that might be possible - but we are not entirely sure of how that's going to work.. what you can do is have your controls as a Web Template, and you can easily reference to a Web Template using the {% include %} tag, your Web Template can take input parameters and will basically contain HTML+Liquid+JS code
    5. very similar to Web Development in my opinion, Portals comes with jQuery already loaded, so you can leverage that (if you are familiar with it) and build your HTML/Modals
    6. not directly.. you can enable Audit for the CDS + Entities + Fields, and then you will have a history of any data changes - you need to be careful to only Audit what is necessary - there is another XrmToolBox tool that helps managing audit / rollback etc - my recommendation here would still have a source control separate and keep your code up to date there
    7. Portal configuration is based on CDS data, you need to make sure you have the Portals provisioned in all environments, and then you can move the data across - again there is another XrmToolBox tool to move this data (also a few other methods)
    8. I would recommend the session from Eugene a few weeks ago: https://www.365.training/Courses/Detail/Fall_PowerAppsPortals

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Syler42 Profile Picture
    9 on at

    Thakns a lot for your answers, that was very helpful. I had one more question:

    1. It is possible to modify CDS data from javascript ? it is any API availible to get data from CDS, modify it on JS script and save ? Or only Liquid templates allows as to access data from CDS ?

     

  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    Hi, there is an API available (in preview) for insert/update/delete operations on the CDS

    I will share here a few articles, including the MS documentation:

    https://docs.microsoft.com/en-us/powerapps/maker/portals/web-api-overview

    http://oliverrodrigues365.com/2020/10/06/power-apps-portals-going-beyond-with-portals-using-web-api/

    https://www.dancingwithcrm.com/powerapps-portal-web-api-deep-dive/

    https://www.youtube.com/watch?v=pTZuBCn3Z74

     

    don't forget to mark the answer as the solution so other people with the same issue can find it

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard