hello,
i recently restored my NCR sharepoint list, and after i restored it, i noticed the redirect to edit form is not working. I am getting Exception from HRESULT: 0x80131904 please help.
this is the link of my restored list. please help.
itsamcomachinery.sharepoint.com/sites/NCR/Lists/Restore_Non%20Conforming%20Material%20Report_202403121/KUNALS%20VIEW.aspx
the below is my current code
fd.spSaved(function(result) {
var listId = fd.spFormCtx.ListAttributes.Id;
var itemId = result.Id;
//replace "https://domain.sharepoint.com/sites/sitename/subsite" with path to your site
//PageType=6 means Edit Form
result.RedirectUrl =
"https://itsamcomachinery.sharepoint.com/sites/NCR/_layouts/15/listform.aspx?PageType=6&ListId="
+ listId + "&ID=" + itemId;
});