Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Unanswered

Add Download button into page template

(0) ShareShare
ReportReport
Posted on by 214

Hello community,

 

I wish to add a download button into my own page-template.
I know the way with entity list; that's fine and works.


But there are some special requirements in list, which only can be done with an special page template.

And now such a download button with its functionality is needed.

 

Thanks,

AndKan

 

  • AndKanPA Profile Picture
    214 on at
    Re: Add Download button into page template

    Hello @ragavanrajan ,

    that's a way to add a simple button without functionality, because document.location='~/Admin returns only "Page not found", because I dont have an "Admin" page.

    That's clear so far.

     

    I need an information how to start the download. A button WITH download function.

    Just like the grid-action-download-button, but inserted in my own template.

     

    Thanks,

    AndKan.

  • AndKanPA Profile Picture
    214 on at
    Re: Add Download button into page template

    Hello @OliverRodrigues ,

    nice way to create a print view (which I solve with css media type print).

    Default way with Grid Configuration add a “Download” action , I cant use in with my web template 😞

     

    Thank you,

    AndKan.

  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on at
    Re: Add Download button into page template

    @AndKanPA check if this helps: http://oliverrodrigues365.com/2018/04/25/dynamics-365-portals-exporting-content/

     

  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: Add Download button into page template

    Hi @AndKanPA , 

     

       One of the way I used in my project is once you add your entity form in the web page. 

     

    In portal studio: 

    1. Click on the source code Editor part at the bottom

    2.  Add a column from components if you like 

    3. Add the button control html tag like below 

     

     <div class="col-md-12 columnBlockLayout" style="display: flex; flex-direction: column; width: 15%;"><button onclick="document.location='~/Admin'" style="background-color: #008CBA; font-size: 16px; color: black;">Download</button></div>

     

    This will add download button in the bottom of the page. If you prefer you can use the same code in your template and make it as default. 

     

    Hope it helps. 

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

     

    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.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35