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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / open file on online in...
Power Apps
Answered

open file on online in view mode

(0) ShareShare
ReportReport
Posted on by 30

I want to open attached file in online on view form.

 

Here  are problems;

sharepointintegration>advanced>action>ViewForm(Formname): not available Onselect(I can't click and can't open file)

sharepointintegration>advanced>action>EditForm(Formname): available Onselect(I can click and open file)

I think onselect action can use in editable form and action:editform(formname).OnSelect action :Launch(ListBox1.Selected.AbsoluteUri & "?web=1"), meaning I can open attached file in online. the data from SP list.

I want to use ViewForm and when I click attached file I can open the file online.

 

please tell me how to solve this.

 

I tried a FormViewer, and I set action (sharepointintegration>advanced>action>ViewForm(formname)).

But error occur like this;

 the function expects an editable form as its input,

 the function has some invalid arguments.

I have the same question (0)
  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @tsunatsuna ,

     

    If you mean that you want to launch the attachment files of SharePoint list in another tab in web browser, this can be achieve in PowerApps. You can add "Attachments" field of SharePoint list inside the view Form control. Then insert a button control inside this data card and set its OnSelect property to:

    Launch(First(ThisItem.Attachments).AbsoluteUri);Launch(Last(FirstN(ThisItem.Attachments,2)).AbsoluteUri);Launch(Last(ThisItem.Attachments).AbsoluteUri)

      

    This formula assume that you at most have 3 attachments files in the attachments field.

     

    If mean that you want the file to be viewed inside PowerApps, then I'm afraid that this cannot be achieved currently.

     

    Regards,

    Mona

  • marytonya Profile Picture
    15 on at
    &action=view

    Adding this at the end of the dynamic absolute uri is what works for me. Not sure if that is what you were looking for...

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard