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 / 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard