New answers tagged

0

You could use fiddler to test the REST API. For more detailed information, refer to the article below. Calling SharePoint REST API with POST from Fiddler. And you also could check the characters in the call http web service action are correct. For more detailed information, refer to the article below. Bad Request (400) with the SharePoint 2013 / Online ...


0

Edit My bad, In such case also, first thing you have to do make a get query to fetch fields to and use odata.type value to know metadata to be passed. Below would be useful for same. Other thing I suspect is that your form digest value might not getting passed correctly, can you debug and check if it you are getting valid value when you are passing in ...


0

For the original workflow history, it is a list with the url: http://yoursite/Lists/Workflow%20History/AllItems.aspx Check more information here:https://blogs.msdn.microsoft.com/voyage/2015/01/23/where-is-workflow-history-list/ You can use it directly in your CEWP. The potential problem is that the list only shows GUID, which is hard to get the idea. ...


0

Another way to do this is using Send Email Action item(outlook 365). Below is how it will look, you can add attachment directly in action by using File content as dynamic data. As you are doing on List with attachments flow would be little long. Below is screenshot for your reference. Just tried this, it is working. Important note - In below ContentBytes ...


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


0

Yes, using JS/PreSaveItem and REST or perhaps SPservices. You really want to create a whole new library? so that with REST services. adding a list back to the list for the newly created library is easy since you know the link when you create the doc lib via it's name /site/doclibname will do it.


0

There is a different approach, in which you can just request for the items within a document library, and add a filter param: /_api/lists/getbytitle('[your library]')/items?$filter=FSObjType eq 0 FSObjType eq 0 -> files FSObjType eq 1 -> folders


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


0

I'm not sure you'll be able to do that. Although it does seem like in the oData spec you should be able to filter by comparing two fields, the examples given in that answer look like they are referencing oData v4, and SharePoint implements oData v3. In any case, I tried a bunch of tests and whenever I tried to add a filter to compare two fields against ...


0

In SharePoint Online, if you want to get all the users from the Azure AD, we can use Graph API to achieve it. https://graph.microsoft.com/v1.0/users If you use SharePoint on-premise and use AD, we can create a custom REST API and use server code to get the AD users, then consume the REST API in your Android App. Or we can synchronize the AD users to a ...


0

While you are using SharePoint Online so yes you can by using API Graph Azure Active Directory


0

I don't think the Active Dirctory has rest API (you have one with Azure AD). But From what I understand you want to get the basic info about currently logged in user. Have a look at this answer should give you the right place to start. get current user info using jquery ,REST and csom


0

It seems that it isn't possible. For those who have the same problem please vote the feature in user voice: https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/11503626-add-the-possibility-to-set-the-owner-when-creating


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.


0

The following articles with source code for your reference. Using jQuery DataTable To Display SharePoint 2013 List Data On SharePoint Site Pages CRUD Operations In SharePoint REST API Using jQuery AJAX DataTables example-REST interface


0

most probably related to your proxy settings on machine from which you connect. Have a look a this article on how to resolve it. https://www.sharepointsky.com/the-remote-server-returned-an-error-407-proxy-authentication-required/


0

This article from Vesa Juvonen tells exactly what you need to do. I assume you've seen this it since it was my first result on a Google search. He says you need <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" /> and he says you need to add the permission XML in the admin site collection (i.e., https://[tenant]-...


0

These snippets should help you I guess. It's done for images but you can easyly adapt it to other fileformats I hope /** * create attachment for an Listitem from a imageURL * @param item where the image will be attached * @param imageName filename of image * @param url image source **/ private _appendImage(item, imageName, url): Promise<...


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&...


0

I can't speak "android", but using postman the following flow works for me: Request "ContextInfo" POST /_api/contextinfo HTTP/1.1 Host: my.sharepoint.local Accept: application/json; odata=verbose User-Agent: PostmanRuntime/7.15.0 Cache-Control: no-cache Postman-Token: dac3ee21-85b6-4c86-8015-3bb9646e25a9,523b0e7b-7d02-4aee-b078-83af480696a1 Host: my....


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

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

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

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


Top 50 recent answers are included