# Automate workflows in Dynatrace

**URL:** <https://community.dynatrace.com/t/automate-workflows-in-dynatrace/49041>\
**Category:** Automations\
**Tags:** dynatrace-saas, workflows\
**Created:** [November 25, 2024, 5:49am UTC](https://community.dynatrace.com/t/automate-workflows-in-dynatrace/49041 "2024-11-25T05:49:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swabh](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Swabh](https://community.dynatrace.com/u/Swabh)\
**Post date:** [November 25, 2024, 5:49am UTC](https://community.dynatrace.com/t/automate-workflows-in-dynatrace/49041/1 "2024-11-25T05:49:18Z")

</div>

Hi , I am trying to create a workflow in my Saas tenant but getting this error "Uncaught (in promise) 400: TOO\_FEW\_PARAMETERS\_FOR\_FUNCTION. exceptionType: “DQL-SYNTAX-ERROR”. syntaxErrorPosition: {“start”:{“column”:82,“index”:81,“line”:1},“end”:{“column”:93,“index”:92,“line”:1}}. errorType: “TOO\_FEW\_PARAMETERS\_FOR\_FUNCTION”. errorMessage: “There aren’t enough parameters for function in(). 1 mandatory parameter is missing: haystack. haystack: The elements where to search for the needle element (t”

I thought may be dynatrace-sdk/automation-utils needs to be installed first , but&nbsp;npm install [@dynatrace](https://community.dynatrace.com/user/64071)-sdk/automation-utils is also failing. Does anyone know how to solve this issue?

Thanks!

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [November 27, 2024, 9:16am UTC](https://community.dynatrace.com/t/automate-workflows-in-dynatrace/49041/2 "2024-11-27T09:16:07Z")

</div>

Hello&nbsp;[@Swabh](https://community.dynatrace.com/user/80227)

PFA Dynatrace resource for ease of troubleshooting:

- [https://www.youtube.com/watch?v=xOFzaOzvUPE](https://www.youtube.com/watch?v=xOFzaOzvUPE)
- [Workflows — Dynatrace Docs](https://docs.dynatrace.com/docs/analyze-explore-automate/workflows)
- [Get started with Workflows — Dynatrace Docs](https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/quickstart)
- [Monitor workflow executions — Dynatrace Docs](https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/running)
- [Automation Workflow capability overview (DPS) — Dynatrace Docs](https://docs.dynatrace.com/docs/manage/dynatrace-platform-subscription/capabilities/automation)

hoping it helps.

KR,

Peter
