1

I think you are facing this issue because you are using old item variable in addSuggestion() function which is initialized on page load. But to get the new values of textboxes, you need to get those value using $("#elementId").val() for each textbox after the submit button is clicked (i.e. inside addSuggestion() function). So I would recommend you to ...


1

Try using this below endpoints: /_api/web/lists/getbytitle('Resourcing Entries')/items?$select=ID&$filter=ID eq 19852 Note: You need to use the Display Name of the list (Name you see on list view page). Or you can directly get the list item if you are getting the item using SharePoint OOTB ID column like: /_api/web/lists/getbytitle('Resourcing ...


1

A caml query will be enough to make the script delete files in a specific folder according to date. $site = new-object Microsoft.SharePoint.SPSite("site url") $web = $site.rootweb $list = $web.Lists["library name"] $query=new-object Microsoft.SharePoint.SPQuery $caml='<Where> <Leq> <FieldRef Name="Created" /> ...


1

In the case the SiteUrl is nonexistent or invalid, your then promise resolution should still fire, but the data parameter passed to it will likely either contain an error object, or at least not contain the siteID your were trying to retrieve. Inside your then, create your item without the Site parameters, then inspect each sub-level of the returned data (...


1

Yes you can do it like this: var restEndpointUrl; var siteUrlFromParameter = getUrlParam('Title', ''); if(siteUrlFromParameter) { //write code for setting URL when parameter is passed to your page restEndpointUrl = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('" + listName2 + "')/items?$filter=SitePath eq '/sites/" + ...


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