# Error when using the workflowClient SDK

**URL:** <https://community.dynatrace.com/t/error-when-using-the-workflowclient-sdk/39481>\
**Category:** Developer Q&A Forum\
**Tags:** coding-assistance, workflows\
**Created:** [April 26, 2023, 4:33pm UTC](https://community.dynatrace.com/t/error-when-using-the-workflowclient-sdk/39481 "2023-04-26T16:33:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas\_c](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/thomas_c/32/17633_2.png) [@thomas\_c](https://community.dynatrace.com/u/thomas_c)\
**Post date:** [April 26, 2023, 4:33pm UTC](https://community.dynatrace.com/t/error-when-using-the-workflowclient-sdk/39481/1 "2023-04-26T16:33:19Z")

</div>

Hi Team!

I try to use the&nbsp;workflowClient SDK but got the following error:

 ![thomas_c_0-1682526496436.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/8bc8eb80b80a959c920a902826922dee5913098d.png)

I can create a new workflow through the WebUI, so it shouldn’t be a permission issue? Is there a way I could retrieve more logs on each of those errors?

Could you help me overpass that blocker please?

Thanks in advance!

Thomas

---

<div class="post-metadata">

**Author:** ![stefan\_eggersto](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefan_eggersto/32/34114_2.png) [@stefan\_eggersto](https://community.dynatrace.com/u/stefan_eggersto)\
**Post date:** [April 26, 2023, 7:20pm UTC](https://community.dynatrace.com/t/error-when-using-the-workflowclient-sdk/39481/2 "2023-04-26T19:20:02Z")

</div>

Hi Thomas,

I could reproduce this issue. It seems like the Notebooks app requests the wrong scope (`automation:automations:read` instead of `automation:workflows:read`). You can check this at `https://<your-environment-id>.apps.dynatrace.com/ui/apps/dynatrace.hub/browse?details=dynatrace.notebooks&detailsTab=technical`.

I will let you know when a fix is available.

---

<div class="post-metadata">

**Author:** ![thomas\_c](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/thomas_c/32/17633_2.png) [@thomas\_c](https://community.dynatrace.com/u/thomas_c)\
**Post date:** [April 26, 2023, 8:37pm UTC](https://community.dynatrace.com/t/error-when-using-the-workflowclient-sdk/39481/3 "2023-04-26T20:37:09Z")

</div>

Thanks Stefan. I could also reproduce this issue in the dashboard app.

---

<div class="post-metadata">

**Author:** ![stefan\_eggersto](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefan_eggersto/32/34114_2.png) [@stefan\_eggersto](https://community.dynatrace.com/u/stefan_eggersto)\
**Post date:** [April 27, 2023, 3:19pm UTC](https://community.dynatrace.com/t/error-when-using-the-workflowclient-sdk/39481/4 "2023-04-27T15:19:13Z")

</div>

The fix will be included in the next version of the Notebooks app.

---

<div class="post-metadata">

**Author:** ![thomas\_c](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/thomas_c/32/17633_2.png) [@thomas\_c](https://community.dynatrace.com/u/thomas_c)\
**Post date:** [April 27, 2023, 7:44pm UTC](https://community.dynatrace.com/t/error-when-using-the-workflowclient-sdk/39481/5 "2023-04-27T19:44:27Z")

</div>

Thanks Stefan! Could you also plan a similar fix for Dashboards please?

---

<div class="post-metadata">

**Author:** ![georg\_ritt](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@georg\_ritt](https://community.dynatrace.com/u/georg_ritt)\
**Post date:** [April 28, 2023, 9:59am UTC](https://community.dynatrace.com/t/error-when-using-the-workflowclient-sdk/39481/6 "2023-04-28T09:59:29Z")

</div>

Hi Thomas,  
a fix for Dashboards was added and will be available with version 1.3 of the app.
