Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

0

I don't believe there is a REST API for Sharepoint 2010 out of the box. If possible, the SPServices jQuery-based library at https://github.com/sympmarc/SPServices can help you access SharePoint's SOAP interface.


1

Consider the following scenario: List A with columns: Title (Single Line Text) ColumnA (Single Line Text) ColumnB (Choice) and List B with columns: Title (Single line of Text) ColumnOne (Single line of Text) ColumnX (Lookup From List A, column A mapped) So the REST Query for List B would be: https://<site url>/_api/web/lists/getbytitle('ListB')/...


2

That is because users get new IDs on each Site Collections. A user might have ID 173 on one Site Collection but ID 46095 on another. If you have sites located at the /sites managed path, then that is a new Site Collection and not a sub site, thus the user might have another ID. To understand why there is changes in user ID you should know something ...


0

Should append items endpoint in the url, please check the official documentation as below: Working with lists and list items with REST


4

To get the list items using REST API you need to use the URL like below: http://sitename/_api/web/lists/getbytitle('List Name')/items To get the List Item Count using REST API you need to use: http://sitename/_api/web/lists/getbytitle('List Name')?$select=ItemCount Reference: Working with lists and list items with REST


0

I'll add on to Nadeem's answer by providing a test that I did. Here are some files that I uploaded to sharepoint online: https://xxx.sharepoint.com/Shared Documents/nasty chars/dang dude you got ().txt https://xxx.sharepoint.com/Shared Documents/nasty chars/dang dude you got '' in the title.txt https://xxx.sharepoint.com/Shared Documents/nasty chars/dang ...


0

You are getting back the actual users, just not their email address. You need to select Email, like: _spPageContextInfo.webAbsoluteUrl + "/_api/web/sitegroups/getbyname('Open%20Source%20Tech%20Talk%20Members')/users?$select=Email" This will get back a response like: { value: [ 0: { Email: "mcsheaj@domain.com" }, ...


4

If you want to get all the users in your SharePoint site you can use : /_api/web/siteusers? Update: Try using below endpoint to get the Site Members from Members group: _api/Web/SiteGroups/GetByName('SiteName Members')/users To get the specific property for user, you can add $select query as given below: _api/Web/SiteGroups/GetByName('SiteName Members')...


1

try using the Value of your Microsoft.SharePoint.Client.ClientResult<System.IO.Stream>. See the docs for reference. So.. Change: WordprocessingDocument wordprocessingDocument = WordprocessingDocument.Open(stream, true); to WordprocessingDocument wordprocessingDocument = WordprocessingDocument.Open(stream.Value, true);


2

If you just want to authenticate as yourself, as in the user who is executing the code, you can pass default credentials with: request.UseDefaultCredentials = true; Ganesh's answer works fine for SharePoint online using CSOM, but since you're on 2019 and using HttpWebRequest, if you want to authenticate as someone other than the user executing the code, ...


0

You can use code like given below for Authentication: using (var context = new ClientContext(webUrl)) { context.Credentials = new SharePointOnlineCredentials(userName,password); context.Load(context.Web, web => wweb.Title); context.ExecuteQuery(); Console.WriteLine("Your site title is: " + context.Web.Title); } References: Remote ...


0

It looked like the data was structured wrong, I've broken it out into it's own variable so you can see the general look of how it should be. In itemdata, the type has to be specific to the list it is going into SP.Data.<ListName>ListItem. It is also a good idea to get the request digest at the time of execution. You can try something like this: ...


0

Thankyou Swapnil Lad. I resolved this in the end with your advice. I had tried giving full control to workflow App and using the App-Step method and it made no difference. It was indeed a permissioning issue. I, and my Leaver Colleague were both in the relevant Groups as Administrators and no one else has these permissions so had nothing to reference. ...


1

Change your header attribute "XML-RequestDigest" to "X-RequestDigest". Reference: https://docs.microsoft.com/pt-br/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-rest#working-with-lists-by-using-rest


1

you can use SPFx People Picker (version 11+) which was released recently at https://sharepoint.github.io/sp-dev-fx-controls-react/controls/PeoplePicker/ . Basically, this control will allow you to pick any users in all trusted domains in SharePoint Online.


0

Please read this article: Microsoft Flow – How to move SharePoint Online list items to folders. This is approach identical to @Lisa Chen's one, but implemented via MS Flow. (This is an option according to your question) You also may attach Remote Event Receiver (RER) to the list, or subscribe web hook. But this is not REST/JSOM/Flow Using JavaScript (REST) ...


0

You can achieve your requirement by creating SharePoint designer workflow. Create SharePoint 2010 platform workflow on the list like the following(choose start workflow automatically when an item is created): 1.create folder with same name as Title of the item. Add "Create List Item" action. select current list. Add Content type ID > select folder, ...


1

Changing as below returned desired results. var xuser = data.d.results[0].Id;


Top 50 recent answers are included