stopPendingEmails not functioning from site collection root

Forums Classic DFFS stopPendingEmails not functioning from site collection root

Viewing 1 reply thread
  • Author
    • #35646
      Amal Vellappillil

      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": ""
        "referrer": "",
        "referrerPolicy": "strict-origin-when-cross-origin",
        "body": "<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:xsi='' xmlns:xsd='' xmlns:soap=''><soap:Body><GetListItems xmlns=\"\"><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:

                          "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

      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: = "";


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