In the "notifications"-section you can configure a feature that allows you to notify colleagues about new reports. Notification mails can be triggered either by exporting reports from the app or by checking reports in the dashboard. It is also possible to define conditions that have to be fulfilled for the follow-up mail to be sent.

Syntax Example
{
  "integrations": {
    "notifications": {
      "enabled": boolean,
      "visitreport": {
        "mappings": {
          "mappingId": {
            "actions": [
              {
                "trigger": "created/checked",
                "switch": "{{ variable }}",
                "cases": [
                  {
                    "value": "Value1",
                    "details": {
                      "type": "email/webhook",
                      "subject": "Text",
                      "content": "Content",
                      "recipients": [
                        "Email1",
                        "Email2"
                      ]
                    }
                  },
                  {
                    "value": "Value2",
                    "details": {
                      "type": "email/webhook",
                      "subject": "Text",
                      "content": "Content",
                      "recipients": [
                        "Email1",
                        "Email2"
                      ]
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}
{
  "integrations": {
    "notifications": {
      "enabled": true,
        "visitreport": {
        "mappings": {
          "*": {
            "actions": [{
                "trigger": "created",
                "switch": "{{ address.zip[0] }}",
                "cases": [{
                  "value": "1",
                  "details": {
                    "type": "email",
                    "subject": "Hello Berlin",
                    "content": "This is an email for you",
                    "recipients": ["test@snapaddy.com", "info@snapaddy.com"]
                  }
                }, 
                {
                  "value": "9",
                  "details": {
                    "type": "email",
                    "subject": "Hello Bavaria",
                    "content": "This is an email for you",
                    "recipients": ["test@snapaddy.com", "info@snapaddy.com"]
                  }
                }]
            }]
          }
        }
      }
    }
  }
}
{
  "integrations": {
    "notifications": {
      "enabled": boolean,
      "mapping": {
        "visitreport": {
          "mappings": {
            "mappingId": {
              "actions": [
                {
                  "trigger": "created/checked",
                  "language": "de/en",
                  "condition": "{{ condition }}",
                  "details": [
                    {
                      "type": "email/webhook",
                      "subject": "subject",
                      "content": "content",
                      "attachments": [
                        {
                          "type": "visitreport_pdf",
                          "name": "name"
                        }
                      ],
                      "recipients": [
                        "Email1",
                        "Email2"
                      ]
                    }
                  ]
                }
              ]
            }
          }
        }
      }
    }
  }
}
{
  "integrations": {
    "notifications": {
      "enabled": true,
      "visitreport": {
        "mappings": {
          "*": {
            "actions": [
              {
                "trigger": "",
                "language": "",
                "condition": "{{  }}",
                "details": [
                  {
                    "type": "email",
                    "subject": "VisitReport {{ visitreport.title }} von {{ organization }} - {{ firstName }} {{ lastName }}",
                    "content": "Sehr geehrte Damen und Herren, anbei finden Sie den VisitReport {{ visitreport.title }} von {{organization}} - {{ firstName }} {{ lastName }}",
                    "attachments": [
                      {
                        "type": "visitreport_pdf",
                        "name": "VisitReport {{ visitreport.title }} von {{ organization }} - {{ firstName }} {{ lastName }}"
                      }
                    ],
                    "recipients": [
                      "info@snapaddy.com"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}