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 in client applica...
Power Apps
Answered

Open in client application

(0) ShareShare
ReportReport
Posted on by 30
Here are details.
I would like to open file which is attached from share point list in client application.
Client application means software installed each computer such as excel or word.
My situation: if I click file, it start to download file. I don't want to download it, just open in client application. Or opening in online such as excel online is also ok.
Please help me and tell how to set in power apps.
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @tsunatsuna ,

     

    Which control do you want to display the control? Display Form?

    If you want to click the file in form and open it, the Launch function can be useful to open the file online or in client apps.

    However, the Attachment control in the Attachment Data Card is a standard control designed to add, remove, download the attachment files and have no OnSelect property to set. We just try to delete it,  and add a list box instead in the data card.

    1. set Items property of listbox as below to display all files

     

    ThisItem.Attachments

     

    2. set OnSelect property of listbox as below to open the files online.

     

    Launch(ListBox1.Selected.AbsoluteUri & "?web=1")

     

    3. To two errors, just delete Update property and set Y property properly.

    If you want to open the file in client apps, just put 'ms-excel: ofe|u|' (for excel files), or put 'ms-word: ofe|u|'  at the beginning of the link. So change OnSelect property of list box as below, then open excel/word files in client app, open other files online.

     

    If(".xls" in ListBox1.Selected.DisplayName,Launch("ms-excel:ofe|u|"&ListBox1.Selected.AbsoluteUri),".doc" in ListBox1.Selected.DisplayName,Launch("ms-word:ofe|u|"&ListBox1.Selected.AbsoluteUri),Launch(ListBox1.Selected.AbsoluteUri & "?web=1"))

     

    Annotation 2019-11-04 151436.png

    Snipaste_2019-11-04_15-17-22.pngHope this helps.

    Best regards,

    Sik

    If my post is helpful for you, please click on “Accept as Solution” to help other members find it more quickly.

     

  • tsunatsuna Profile Picture
    30 on at
    Thank you so much @v-siky-msft

    I did No.2, but it doesn't work. If I click text, it doesn't open.
    Please tell me No.3 more details.
  • tsunatsuna Profile Picture
    30 on at
    In addition, I can open file in editing mode, but I can't open in viewing mode.
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @tsunatsuna ,

     

    Do you mean if you set list box's Display Mode to View, you wouldn't open the files?

    I think this is fine, View mode is only to display data, have no way for interaction.

    To No,3, it is for opening files in client application, you just need to just put 'ms-excel: ofe|u|' (for excel files) before the AbsoluteUri of attachment. e.g. Launch("ms-excel:ofe|u|"&ListBox1.Selected.AbsoluteUri)

    Note: 'ms-excel: ofe|u|' is for excel , 'ms-word: ofe|u|' is for word.

    If you still have any issue , please post back some screenshots and formula error information, to help you resolve it.

    Best regards,

    Sik

    If my post is helpful for you, please click on “Accept as Solution” to help other members find it more quickly.

  • tsunatsuna Profile Picture
    30 on at

    Thank you so much @v-siky-msft

     

    I mean I would like to open the files in view mode. Because I click the list, it is view mode. In addition to this, I don't want to be edit mode, as I can't allow to edit list.  

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @tsunatsuna ,

     

    Do you mean the view mode of The Form?

    Did you use EditForm? Actually, you can use Display Form, the other field would be in view mode, and attachment list box can still be selected. please see my demo.

    Snipaste_2019-11-06_12-59-07.png

    Best regards,

    Sik 

  • tsunatsuna Profile Picture
    30 on at

    Thank you for your quick replying @v-siky-msft 

    and sorry for my poor explanation.

    Here are details:

    ・It's edit form.

    ・if Default mode is Edit, I can open file

    ・if Default mode is view, I can't open it. when I click edit all of list(attached picture2), I can open.

    1.PNG
    2.PNG
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @tsunatsuna ,

     

    Yes, I know. 

    And I suggest you to use Display Form which would meet your requirement.

    Best regards,

    Sik

  • tsunatsuna Profile Picture
    30 on at

    @v-siky-msft 

    I see.

    please tell me two things;

    1.how to change viewform. an error occurs.(attached 12picture)

    2.how to pass the data from list. I added field, but it seems it cant have the data.(attached 13picture)

     

    13.PNG
    12.PNG
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @tsunatsuna ,

     

    OK, the above workaround seem not to work in PowerApps forms of SP, because if form mode is view, no interactive can be done, and also it only support editform. so let's change to add the list box out of the form!

    Reduce the size of the form and create a listbox under the form, set the list box items property to SharePointIntegration.Selected.Attachments . So whatever the mode of form is , the list box can always be selected. Just keep the previous steps and have a try.

    Best regards,

    Sik

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 308

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard