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 ...
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:
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"]
<FieldRef Name="Created" />
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 (...
Yes you can do it like this:
var siteUrlFromParameter = getUrlParam('Title', '');
//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/" + ...