# Generate and update the notebook or dashboard and send it as a report

**URL:** <https://community.dynatrace.com/t/generate-and-update-the-notebook-or-dashboard-and-send-it-as-a-report/39493>\
**Category:** Automations\
**Tags:** automationengine, latest-dynatrace, workflows, automation\
**Created:** [April 27, 2023, 7:27am UTC](https://community.dynatrace.com/t/generate-and-update-the-notebook-or-dashboard-and-send-it-as-a-report/39493 "2023-04-27T07:27:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![agata.wlodarczyk](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agata.wlodarczyk/32/22_2.png) [@agata.wlodarczyk](https://community.dynatrace.com/u/agata.wlodarczyk)\
**Post date:** [April 27, 2023, 7:27am UTC](https://community.dynatrace.com/t/generate-and-update-the-notebook-or-dashboard-and-send-it-as-a-report/39493/1 "2023-04-27T07:27:38Z")

</div>

Is a workflow able to generate and update a notebook or dashboard and send it as a report on a schedule?

---

<div class="post-metadata">

**Author:** ![michaelwinkler](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michaelwinkler/32/29293_2.png) [@michaelwinkler](https://community.dynatrace.com/u/michaelwinkler)\
**Post date:** [April 27, 2023, 7:28am UTC](https://community.dynatrace.com/t/generate-and-update-the-notebook-or-dashboard-and-send-it-as-a-report/39493/2 "2023-04-27T07:28:53Z")

</div>

Automation Workflows can be used to generate and update notebooks or dashboards via document store SDKs and APIs. The links to those can be sent as part of a report.

Creating status artifacts (e.g. picture or pdf) is currently not supported.

---

<div class="post-metadata">

**Author:** ![StrangerThing](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/strangerthing/32/12182_2.png) [@StrangerThing](https://community.dynatrace.com/u/StrangerThing)\
**Post date:** [June 6, 2023, 6:42pm UTC](https://community.dynatrace.com/t/generate-and-update-the-notebook-or-dashboard-and-send-it-as-a-report/39493/3 "2023-06-06T18:42:30Z")

</div>

[@michaelwinkler](https://community.dynatrace.com/user/26905)&nbsp;Can you send a guide on how to create and update notebooks via API in a workflow?

---

<div class="post-metadata">

**Author:** ![michaelwinkler](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michaelwinkler/32/29293_2.png) [@michaelwinkler](https://community.dynatrace.com/u/michaelwinkler)\
**Post date:** [June 9, 2023, 8:41am UTC](https://community.dynatrace.com/t/generate-and-update-the-notebook-or-dashboard-and-send-it-as-a-report/39493/4 "2023-06-09T08:41:13Z")

</div>

Hi,

Using the [document SDK](https://developer.dynatrace.com/reference/sdks/client-document/) in a typescript workflow action is the easiest.

Would you mind sharing some more information about your use case and what you are trying to achieve?

Thank you,

Michael

---

<div class="post-metadata">

**Author:** ![StrangerThing](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/strangerthing/32/12182_2.png) [@StrangerThing](https://community.dynatrace.com/u/StrangerThing)\
**Post date:** [October 3, 2023, 1:19pm UTC](https://community.dynatrace.com/t/generate-and-update-the-notebook-or-dashboard-and-send-it-as-a-report/39493/5 "2023-10-03T13:19:10Z")

</div>

Sure. We’re currently setup with alert profiles and notification profiles through PagerDuty via custom API integration. We’d like to have some workflows with specific problem triggers (probably just for our tier 1 applications) that would run queries against the entity(ies) impacted by the problem, and then generate a notebook with those results (along with some other, possibly templated information). As a final step, we’d like to have the workflow reach out to the PagerDuty API to update the related incident with the link to the notebook.

Basically, we want to try to reduce MTTR by having initial queries for problem related data run automatically and a notebook generated to capture it all. This would include custom metric and log data that may not already be included in the Davis AI problem analysis. Having a notebook with queries and data ready to go would provide a great starting point for PlatOps troubleshooting and analysis since they’re already running similar queries manually today.

---

<div class="post-metadata">

**Author:** ![michaelwinkler](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michaelwinkler/32/29293_2.png) [@michaelwinkler](https://community.dynatrace.com/u/michaelwinkler)\
**Post date:** [October 3, 2023, 1:47pm UTC](https://community.dynatrace.com/t/generate-and-update-the-notebook-or-dashboard-and-send-it-as-a-report/39493/6 "2023-10-03T13:47:47Z")

</div>

Hi,

It could potentially be more convenient to have a dedicated notebook and/or dashboard for said Davis problems and Tier 1 applications, which is accessed and run on demand (instead of building it every time a problem occurs).

The workflow could look like the following:

- Davis Problem trigger (filtering on specific problems and applications)

- sending a slack/teams message to the corresponding team with the link to the notebook/dashboard

- informing Pagerduty

btw: We just recently released “Pagerduty for Workflows” which includes six different workflow actions to easily integrate with Pagerduty.

---

<div class="post-metadata">

**Author:** ![StrangerThing](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/strangerthing/32/12182_2.png) [@StrangerThing](https://community.dynatrace.com/u/StrangerThing)\
**Post date:** [October 3, 2023, 3:02pm UTC](https://community.dynatrace.com/t/generate-and-update-the-notebook-or-dashboard-and-send-it-as-a-report/39493/7 "2023-10-03T15:02:08Z")

</div>

That would work, although we want to make sure we preserve the notebook for later use. If we do what you suggested, we’d be overwriting the notebook every time the problem trigger initiated.
