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 Apps / How to edit office fil...
Power Apps
Unanswered

How to edit office files within Canvas apps?

(0) ShareShare
ReportReport
Posted on by 3

Hi,

I was trying to have the SharePoint documents library within a Canvas app.

I did an API call to Microsoft Graph API to generate a preview link, then used that link in a custom iFrame component to show the file preview, the problem is I cannot find a way to have an editable view.

 

Currently, with view only a preview, my app looks like this:

Deepakvel_1-1719388918779.png

 

But when I tired using direct SharePoint link (without generating preview URL) in the iFrame, I was getting what I want:

Deepakvel_2-1719389097592.png

 

But it works only while editing the view, once published I get the following message:

Deepakvel_4-1719389745139.png

Ref:

  1. https://youtu.be/JxPznTUsaiQ
  2. driveItem: preview - Microsoft Graph v1.0 | Microsoft Learn
  3. Get short-lived embeddable link for preview purposes - OneDrive API - OneDrive dev center | Microsoft Learn

 

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    Yes, the SharePoint team is adamantly against being IFramed in as content. I had an open ticket with them for almost four months trying to get them to allow IFraming in a different but similar context, and the final answer was, "never going to happen."

     

    If you need to edit SharePoint documents from a Canvas App list experience, I recommend opening them in a new tab using Launch() with the Target param set to New: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-param#launch 

  • Deepakvel Profile Picture
    3 on at

    Thank you for the information 👍.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard