Share via


3.2.5.143.2.1.19 CreateOrganizationSharingLink

This method is a static CSOM method.

Return Type: CSOM String

Creates and returns an organization-internal link that can be used to access a document and gain permissions to it.

Parameters:

url: The URL of the site, with the path of the object in SharePoint that is represented as query string parameters, forSharing set to 1 if sharing, and mbypass set to 1 to bypass any mobile logic.

Type: CSOM String

For example:

http://contoso.com/?forSharing=1&mbypass=1&List=%7BCF908473%2D72D4%2D449D%2D8A53%2D4BD01EC54B84%7D&obj={CF908473-72D4-449D-8A53-4BD01EC54B84},1,DOCUMENT

isEditLink: If true, the link will allow the logged in user to edit privileges on the item.

Type: CSOM Boolean