Is there any REST API available to open a file in review mode similar to view and edit?

karlapati Rajesh 1 Reputation point
2022-03-16T07:37:57.907+00:00

183623-onedriveapi.png183631-onedriveapi1.png

I am calling Onedrive & Sharepoint online REST API to create a link in view mode and to create a link edit mode in my application and which is working fine (Please find the attached). But, Now i got a scenario to create a link in review mode aslo. Is there any api or solution readily available?

https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_createlink?view=odsp-graph-online

Thanks,
Rajesh

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,104 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
8,560 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,506 Reputation points
    2022-03-16T09:12:33.767+00:00

    Hi @karlapati Rajesh ,

    Open in Review Mode is only available for Word files in SharePoint/OneDrive in Web UI.

    Currently using Graph REST API sharing link with review mode is not available.

    You can request a feature which will be monitored by Microsoft product team and based on number of votes and people requesting for this feature will be taken up by product team.

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    2 people found this answer helpful.

  2. RaytheonXie_MSFT 26,791 Reputation points Microsoft Vendor
    2022-03-16T09:22:59.77+00:00

    Hi @karlapati Rajesh ,
    I aggree with rinivasaRaoDarnaMSFT-7657's opinion that Review Mode is only available for Web UI. And I feel regretful to inform you that it turns out to be a by-design one.

    And I noticed that some end users have also proposed the same request, it is highly recommended that you can vote this ticket. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    1 person found this answer helpful.