<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Update variable values on new Dashboard using workflow task in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Update-variable-values-on-new-Dashboard-using-workflow-task/m-p/275644#M4969</link>
    <description>&lt;P&gt;Hi ,&lt;BR /&gt;I have new dashboard(not the classic), dashboard has tile shows metric data&amp;nbsp; i.e disk utilization based on parameter passed to to DQL. .&lt;BR /&gt;&lt;BR /&gt;Dashboard tiles shows disk utilization based on host names passed in DQL ,&amp;nbsp;I wan to update this tile input&amp;nbsp;($Host_Name) i.e. values of 'Host name' from workflow. Workflow having task which gives me list&amp;nbsp; of host which has threshold violation.&lt;BR /&gt;&lt;BR /&gt;So&amp;nbsp; on Dashboard , want to show disk % of of those host which has threshold violation. Can I used js code to update dashboard tile's dql query.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Heramb&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2025 06:29:54 GMT</pubDate>
    <dc:creator>heramb_sawant</dc:creator>
    <dc:date>2025-05-13T06:29:54Z</dc:date>
    <item>
      <title>Update variable values on new Dashboard using workflow task</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Update-variable-values-on-new-Dashboard-using-workflow-task/m-p/275644#M4969</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;I have new dashboard(not the classic), dashboard has tile shows metric data&amp;nbsp; i.e disk utilization based on parameter passed to to DQL. .&lt;BR /&gt;&lt;BR /&gt;Dashboard tiles shows disk utilization based on host names passed in DQL ,&amp;nbsp;I wan to update this tile input&amp;nbsp;($Host_Name) i.e. values of 'Host name' from workflow. Workflow having task which gives me list&amp;nbsp; of host which has threshold violation.&lt;BR /&gt;&lt;BR /&gt;So&amp;nbsp; on Dashboard , want to show disk % of of those host which has threshold violation. Can I used js code to update dashboard tile's dql query.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Heramb&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 06:29:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Update-variable-values-on-new-Dashboard-using-workflow-task/m-p/275644#M4969</guid>
      <dc:creator>heramb_sawant</dc:creator>
      <dc:date>2025-05-13T06:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to update variable values on new dashboard using workflow task such as js code or https API</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Update-variable-values-on-new-Dashboard-using-workflow-task/m-p/275887#M4983</link>
      <description>&lt;P&gt;I was able incorporate workflow results in a dashboard through the use of a code tile and I imagine something similar would be possible for a variable. You would do this by doing a 'code' variable that retrieves the output from the most recent execution of the workflow. Here's the code from my dashboard tile to help you get started.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { executionsClient } from "@dynatrace-sdk/client-automation";

export default async function () {

  // Get the last successful execution
  const workflow_executions = await executionsClient.getExecutions({
    workflow: "&amp;lt;WORKFLOW_ID_HERE&amp;gt;",
    ordering: "-endedAt",
    state: "SUCCESS"
  });
  const last_execution = workflow_executions.results[0].id;
    
  // fetch results from the workflow task
  const task_result = await executionsClient.getTaskExecutionResult({
    executionId: last_execution,
    id: "&amp;lt;WORKFLOW_STEP_NAME_HERE&amp;gt;"
    });
  
  return task_result;

}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Apr 2025 19:46:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Update-variable-values-on-new-Dashboard-using-workflow-task/m-p/275887#M4983</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-04-24T19:46:09Z</dc:date>
    </item>
  </channel>
</rss>

