New answers tagged

1

As far as I know there are no REST methods for retrieving multiple files at a time. But you can make requests in parallel if you know the files' URLs. And wait until all the requests are processed with Promise.all(requestsArray).


1

Here is a Rest call sample to update person field in List named "MyList" and Person field named "Person1": $.ajax ({ // _spPageContextInfo.webAbsoluteUrl - will give absolute URL of the site where you are running the code. // You can replace this with other site URL where you want to apply the function url: ...


1

You need to use the Folders endpoint something like below: _spPageContextInfo.siteAbsoluteUrl + "/_api/Web/Folders/add('Communications/NewFolderName')" Note: You need to pass the ServerRelativeUrl inside the add method. Official documentation: Working with folders by using REST. Similar question: Creating Folder using REST and JavaScript


0

I created a modern test team site and added a Person/group column in the list. By default the results are coming in the dropdown. Do you need something else?


0

That is no OOB settings to control the behavior for that column. You can customize it in a InfoPath/PowerApps forms


2

You cannot do this OOTB. But as an alternative you can edit the form using PowerApps (requires permissions). Initially the form looks like below: Now, edit the form using Customize with PowerApps button. The PowerApps screen will open. Follow the below steps (steps are mapped to the image below): Remove the existing drop-down (combo-box) of your people ...


0

OOTB doesn't have that feature. To have a dropdown, try to customize the form using PowerApps.


0

You can do this using SharePoint Search. REST API also contains Search APIs for SharePoint. Create a result source by adding paths of all your lists in the query builder (also specify content type contains item). Check this article for creating a result source. Your query builder should look like this. Check if the results are as desired and then you can ...


1

You need to expand People or Group column to get the details associated with that column. Get all items https://site-url/_api/web/Lists/GetByTitle('listname')/Items?$expand=WRNo&$select= WRNo/Title Get specific item https://site-url/_api/web/Lists/GetByTitle('listname')/Items(ItemID)?$expand=WRNo&$select= WRNo/Title Where WRNo is the Person ...


1

You can get it per item: _api/web/lists/getByTitle('Plan')/items(<id of item>)?$select=WRNo/Title&$expand=WRNo/Id or all: _api/web/lists/getByTitle('Plan')/items?$select=WRNo/Title&$expand=WRNo/Id


-1

you should use it like this http://yourSite/_api/web/lists/getByTitle('Pages')/items?$select=Title,Id,Author/Title&$expand=Author use expand to select people ou lookup fields an example here


0

Quick follow on to this make sure you set correct permissions. Use the SharePoint ones and not the Microsoft.Graph ones. Does Works: SharePoint / Application / Sites.Manage.All Doesn't work: Microsoft Graph / Application / Sites.Manage.All


1

As answered over on the MS TechNet Project Server Forum, you can get the lookup table of a local custom field by using the URL https://<<PWA URL>>/_api/ProjectServer/Projects('<<ProjectID>>')/CustomFields('LocalCustom_Draft_f233fada2a0cea119bdad4258bf6958b_000039b78bbe4ceb82c4fa8c0b400033')/LookupTable/Entries which, I discovered ...


0

get your view : /_api/web/lists/getByTitle('Pages')/Views/getByTitle('test') and set it to default view function UpdateList(){ var listName="Pages"; var list = { "__metadata": { "type": 'SP.View' }, "DefaultView": true }; jq.ajax({ url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getByTitle('Pages')/Views/...


1

EDIT: I saw your edit to the OP. You're looking for the email, but if you take a look at the , its value is 4, which corresponds to a Security Group. Security Groups in AD don't always have email addresses, so I assume that in your example, the principal that you're looking at just doesn't have an email address. See here: https://docs.microsoft.com/en-us/...


1

I agree with Ravi that there isn't any way I know of to get more information, but there is a bit of information there. It mentions input string so one of the columns in the list is expecting a string and either you've mangled a string or your trying to pass a number, boolean, or other value. First instinct is usually to look at the data that is marked as ...


4

Unfortunately NO, I did not come across any way to identify which value has caused 400 bad request error. Workaround is to remove column & respective input one by one and check the fields for which you need to make the input in proper format.


0

After some more googling, found the answer embedded in another question GetUserEffectivePermissions returns wrong results which is answered correctly. using (var ctx = new ClientContext("http://comtoso.com")) { var list = ctx.Web.Lists.GetByTitle("TestList"); ctx.Load(list); ctx.ExecuteQuery(); var permissions = ...


0

Get item level permission as described here might help


Top 50 recent answers are included