Files
directus/docs/guides/flows/generate-work-reports.md
Matthew Rumery bf10c943c8 Fix broken links in the documentation (#18377)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-02 10:03:32 +02:00

72 lines
1.3 KiB
Markdown

---
description: This recipe outlines a method to generate reports using Directus Flows.
tags: []
skill_level:
directus_version: 9.18.1
author_override:
author: Eron Powell
---
<!--
Pairs well with [workflows](/cookbook/permissions/workflows)
-->
# Generate Work Reports
> {{ $frontmatter.description }}
:::tip Author: {{$frontmatter.author}}
<!-- **Skill Level:** {{$frontmatter.skill_level}}\ -->
**Directus Version:** {{$frontmatter.directus_version}}
<!-- **Tags:** {{$frontmatter.tags.join(", ")}} -->
:::
## Explanation
<!--
See the VitePress docs to learn about its markdown options:
https://vitepress.vuejs.org/guide/markdown
-->
## The Recipe
:::tip Requirements
You'll need something to validate against.
:::
<video autoplay playsinline muted loop controls>
<source src="" type="video/mp4" />
</video>
<!--
VIDEO IS OPTIONAL: delete if not needed
-->
### Get Stakeholders
- cron job
- read data
- Get relevant authors/managers/etc.
- trigger flow
- pass array of users/stakeholders into payload
### Generate and Send Report
- another flow: for user in user_list
- read data
- get data/content using a query
- get authors and managers
- send data
- run script (optional)
- format data for report
- email or notification
- send to managers or stakeholders
## Final Tips