From 6804c92861c4c56ef3bf18579ab4bcf098902279 Mon Sep 17 00:00:00 2001
From: Trenton H <797416+stumpylog@users.noreply.github.com>
Date: Fri, 17 Jan 2025 13:00:59 -0800
Subject: [PATCH] Fix: Include email and webhook objects in the export (#8790)

---
 src/documents/management/commands/document_exporter.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/documents/management/commands/document_exporter.py b/src/documents/management/commands/document_exporter.py
index 2f85ad8f8..6dc89479e 100644
--- a/src/documents/management/commands/document_exporter.py
+++ b/src/documents/management/commands/document_exporter.py
@@ -48,6 +48,8 @@ from documents.models import Tag
 from documents.models import UiSettings
 from documents.models import Workflow
 from documents.models import WorkflowAction
+from documents.models import WorkflowActionEmail
+from documents.models import WorkflowActionWebhook
 from documents.models import WorkflowTrigger
 from documents.settings import EXPORTER_ARCHIVE_NAME
 from documents.settings import EXPORTER_FILE_NAME
@@ -275,6 +277,8 @@ class Command(CryptMixin, BaseCommand):
             "group_object_permissions": GroupObjectPermission.objects.all(),
             "workflow_triggers": WorkflowTrigger.objects.all(),
             "workflow_actions": WorkflowAction.objects.all(),
+            "workflow_email_actions": WorkflowActionEmail.objects.all(),
+            "workflow_webhook_actions": WorkflowActionWebhook.objects.all(),
             "workflows": Workflow.objects.all(),
             "custom_fields": CustomField.objects.all(),
             "custom_field_instances": CustomFieldInstance.objects.all(),