3

Try using endpoint something like below: _spPageContextInfo.webAbsoluteUrl +"/_api/web/GetFolderByServerRelativeUrl('SitePages')/Files?$select=Name,Title,ServerRelativeUrl,ListItemAllFields&$expand=ListItemAllFields


2

Try below endpoints and see which suits best for your use: 1) Using FileLeafRef property: /_api/web/lists/getByTitle('<library title>')/items?$select=FileLeafRef 2) Using File/Name property: /_api/web/lists/getbytitle('<library title>')/items?$select=File/Name&$expand=File 3) Using Folder/Files property: /_api/web/...


1

Just as CarIF said, you can use flow to send HTTP request and create a new library through Rest API. Please check this:https://www.fidelityfactory.com/blog/2019/3/15/using-the-powerful-sharepoint-http-action-in-ms-flow-to-create-modern-libraries And then you can use an update list item action to add the link to the list item.


1

Have you looked at Microsoft Flow? You can add a custom action whenever an item is added to a list. Some of the options are to create a SharePoint folder, file, or item, and to create a sharing link. If a folder will suit your needs instead of a new library, you can do it without coding at all. The process might be to open the list in SharePoint, then click ...


1

This Code is working perfectly to upload file up to 249MB using SP online. You need to add "httpclient-4.3.6" this jar in your build path. package test; import java.io.File; import java.io.IOException; import java.io.UnsupportedEncodingException; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache....


1

Try using your endpoint URL like given below: var endPointUrl = url + "/_api/web/GetFolderByServerRelativeUrl('Style%20Library')/ListItemAllFields/breakroleinheritance(copyRoleAssignments=true, clearSubscopes=true)" Similar questions for Reference: Break inheritance on a folder using REST. Sharepoint Rest API breakRoleInheritance Of Folder.


1

So, you are trying to do two things at once: Get the Item Count for the given folder Get the 'fileType' column for all items in the folder This seems like a job better suited to multiple sequential REST calls, but this worked for me: <server>/_api/web/GetFolderByServerRelativeUrl('/Pages')?$expand=Folders,Files/ListItemAllFields/FieldValuesAsText&...


1

Before update the list item using REST API, you need get the etag using REST API, and the the etag value in "IF-MATCH" of the POST headers when update the list item. If the code throw the error, we can alert the user refresh the page or wait some time, then resumbit the form. The following articles for your reference: Using ETags in SharePoint REST Calls ...


1

My guess is somebody messed with the user info list on the site and deleted those entries from the list. Never delete users from SharePoint's user list. Even though the account owners may be gone, the user info is still important for data integrity. Delete or deactivate the underlying AD accounts instead. If this is what happened your options are: restore ...


1

QueryText is always wild card if you are not specifying any column , it just check for 'Share' keyword in your content and if found will return result, not sure why you need wild card. Wildcard(*) only make sense when you are search values for a particular property. You can add a * for suffix wildcard matching like below. last one is for phrase search so ...


1

The endpoint is different for SP2010. The URL below will return all SharePoint Groups on a site collection. <SiteCollectionUrl>/_vti_bin/Listdata.svc/UserInformationList?$filter=substringof('SharePointGroup',ContentType) eq true There's another way to achieve what you are trying to do with SPServices. $().SPServices({ operation: '...


1

I found a solution! The properties I am looking for are inside a web part labelled "Web Part Page Title Properties". Here is the REST API call: _spPageContextInfo.siteAbsoluteUrl + "/_api/web/GetFileByServerRelativeUrl('" + {{Url of Web Page}} + "')/GetLimitedWebPartManager(1)/WebParts" + "?$expand=WebPart/Properties" + "&$filter=WebPart/Title eq 'Web ...


Only top voted, non community-wiki answers of a minimum length are eligible