New answers tagged

0

The following REST call will GET all AD Groups that are being used in the site without iterating through the SharePoint Groups: /_api/web/siteusers?$filter=PrincipalType eq 4.


2

you can use the below code to get the version history of Comments field, function getFieldHistory (itemId, fieldName) { //Get each item version history with comment using SPServices var HTML=''; var ItemID ="", AdditionalComments= ""; var i = 1; $().SPServices({ operation: "GetVersionCollection", strlistID: "{A4538568-2FC1-44E2-BAFC-...


0

Suggest to create index column and then use it in Rest API endpoint or Caml, please check the similiar question here: SharePoint Online: REST API for List, calling Filters and limit the return items Another suggestion is to check the ItemsCount in the logic and use the $top parameter in Rest to control the items returned less than 5000: How to read more ...


0

In general, any query in JSOM/CSOM can work around the List View Threshold by setting the RowLimit to some number under 5,000. If you actually need to retrieve more than 5,000 of the items, you will need to use the ListItemCollectionPosition to "page" through the results in "chunks" so that any given queryExecute never exceeds the List View Threshold.


2

try the below code, I have added Mult="TRUE" this we used to use in our old codes var fieldSchema = <Field Type="TaxonomyFieldTypeMulti" Name="SessionTopics" Mult="TRUE" DisplayName="Session Topics" Required="TRUE" Group="...


0

Try using below JSOM code: var context = SP.ClientContext.get_current(); var web = context.get_web(); var list = context.get_web().get_lists().getByTitle(listTitle); var taxField = '<Field Type="TaxonomyFieldType" DisplayName="Location" ShowField="Term1033" Required="FALSE" EnforceUniqueValues="FALSE" StaticName="Location" Name="Location" &...


0

We can go to Web Part Gallery(/_catalogs/wp/Forms/AllItems.aspx), find the web part and click "Edit" and click "View Xml" in the ribbon to get the Xml of the web part. The xml of the query string web part as following. <?xml version="1.0" encoding="utf-8"?> <webParts> <webPart xmlns="http://schemas.microsoft.com/WebPart/v3"> <...


Top 50 recent answers are included