stopPendingEmails not functioning from site collection root

Forums Dynamic Forms for SharePoint stopPendingEmails not functioning from site collection root

Viewing 1 reply thread
  • Author
    Posts
    • #35646
      Amal Vellappillil
      Participant

      Hi Alex,

      I am running into a problem of stopPendingEmails function is not erroring when called from a list in site collection root. This doesnt seem to be happening with subsites.

      Here is the Error:
      POST https://_vti_bin/lists.asmx net::ERR_NAME_NOT_RESOLVED

      Here is the request details that is being sent when calling stopPendingEmails function:

      fetch("https://_vti_bin/lists.asmx", {
        "headers": {
          "accept": "application/xml, text/xml, */*; q=0.01",
          "content-type": "text/xml; charset=UTF-8",
          "sec-ch-ua": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Microsoft Edge\";v=\"99\"",
          "sec-ch-ua-mobile": "?0",
          "sec-ch-ua-platform": "\"Windows\"",
          "soapaction": "http://schemas.microsoft.com/sharepoint/soap/GetListItems"
        },
        "referrer": "https://intranet.ltp.org/",
        "referrerPolicy": "strict-origin-when-cross-origin",
        "body": "<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><GetListItems xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\"><listName>DFFS_EMail</listName><query><Query xmlns=\"\"><Where><And><Or><BeginsWith><FieldRef Name='Title' /><Value Type='Text'>/lists/all staff meetings:1629824017430|</Value></BeginsWith><BeginsWith><FieldRef Name='Title' /><Value Type='Text'>/lists/all staff meetings:4|</Value></BeginsWith></Or><Neq><FieldRef Name='Done' /><Value Type='Boolean'>1</Value></Neq></And></Where></Query></query><viewFields><ViewFields xmlns=\"\"><FieldRef Name=\"ID\"/><FieldRef Name=\"Title\"/><FieldRef Name=\"Stop\"/></ViewFields></viewFields><rowLimit>100000</rowLimit><queryOptions><QueryOptions xmlns=\"\"><IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns></QueryOptions></queryOptions></GetListItems></soap:Body></soap:Envelope>",
        "method": "POST",
        "mode": "cors",
        "credentials": "omit"
      });

      I did try the request manually (took the code inside stopPendingEmails function and added the webAbsoluteUrl from _spPageContextInfo and passed it along as listBaseUrl property. Code:

      spjs.utility.updateItem({
                          "listName": "DFFS_EMail", "listBaseUrl": _spPageContextInfo.webAbsoluteUrl, 
                          "id": 524,
                          "data": {
                              "Stop": "1"
                          }
                      })

      This request worked and did update the list item (pending email record).

      Can you please take a look and advise?

      Thank you,
      Amal Vellappillil

    • #35727
      Alexander Bautz
      Keymaster

      Hi,
      This bug will be fixed in the next release, but in the meantime you can add this to your Custom JS in the form that is affected:

      spjs.dffs.data.dffs_email_baseUrl = "";
      

      Alexander

Viewing 1 reply thread
  • You must be logged in to reply to this topic.