DFFS email sent but no list item created

Home Forums Classic DFFS DFFS email sent but no list item created

Viewing 1 reply thread
  • Author
    Posts
    • #38341
      Jon Whisman
      Participant

        Hello all – have a weird one. We’ve had an issue a couple times in the past few months where a user fills out the form, does a save, DFFS sends the email but no actual record was created.

        I have my DFFS sending occurring in the Preave action. Maybe this is a mistake. My hunch is that some error is occurring in PreSave that I’m not seeing, but DFFS still sends the email. Due to the un-seen error though, the record is not saved – even though the user thinks it did.

        If any of that makes sense, has anyone else had similar issues? Any tips or canned code for error logging I can implement in my presave that any aware of?

        Ideally, I want to return out of my presave and NOT send any DFFS email if any error is logged.

        Thanks in advance!

      • #38342
        Alexander Bautz
        Keymaster

          Hi,
          There might not be your custom code that causes this issue. It could be some kind of validation error after the item has been submitted to SharePoint that causes the item to not save. All emails in the classic DFFS version are sent after the PreSaveAction function (if any) return true, but before the item is actually saved to SharePoint. This means that if there are validation errors on the server side that cancels the save, the email will be sent but no item will be created in the list.

          This is a limitation in how the emails work in the classic DFFS version, and if it is causing problems you should use a FLOW (or a SharePoint Designer workflow if you are on-prem) to send an email after the item has actually been saved to the list.

          Alexander

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