Share via


SP.ListItem.getWOPIFrameUrl Method (sp.js)

Gets the full URL to the SharePoint frame page that initiates the SP.Utilities.SPWOPIFrameAction object with the WOPI application associated with the list item.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

SP.ListItem.getWOPIFrameUrl()

Parameters

action

The requested SPWOPIFrameAction enumeration.

Return value

A string representation of the full URL to the WOPI frame. If there is no associated WOPI application, or no associated action, String.Empty is returned.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/items(itemid)/getWOPIFrameUrl(action)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/items(itemid)/getWOPIFrameUrl(action)

Resource parameters

  • action