<?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 Re: XIQ Site Engine  NBI start workflow from another workflow with passing a value in the variable i in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xiq-site-engine-nbi-start-workflow-from-another-workflow-with/m-p/92890#M9683</link>
    <description>&lt;P&gt;This one works for me:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;'''mutation { workflows { startWorkflow(input: {path: "%s", variables: {deviceIP: "%s"}}) {status, message}}}''' %(emc_vars["WorkflowToExecute"],varDevice['ip'])&lt;/LI-CODE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Mon, 05 Sep 2022 06:55:05 GMT</pubDate>
    <dc:creator>Zdeněk_Pala</dc:creator>
    <dc:date>2022-09-05T06:55:05Z</dc:date>
    <item>
      <title>XIQ Site Engine  NBI start workflow from another workflow with passing a value in the variable input</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xiq-site-engine-nbi-start-workflow-from-another-workflow-with/m-p/92877#M9679</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to run a workflow from another workflow with the NBI mutation call:&lt;/P&gt;&lt;P&gt;mutation {&lt;BR /&gt;workflows{&lt;BR /&gt;startWorkflow(input: {&lt;BR /&gt;id: "idnumber"&lt;BR /&gt;variables: "[....]"&lt;BR /&gt;} {&lt;BR /&gt;status&lt;BR /&gt;message }}&lt;/P&gt;&lt;P&gt;but I want to set a variable value in the list of variables of the workflow that i want to run in manner that this use the value that I pass to it.&lt;/P&gt;&lt;P&gt;How to do this?&lt;/P&gt;&lt;P&gt;I'm able to run the second workload with the id alone input field, but I don't know how to pass also a variable value in the NBI mutation call.&lt;/P&gt;&lt;P&gt;Is there and example on how to do this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 13:44:38 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xiq-site-engine-nbi-start-workflow-from-another-workflow-with/m-p/92877#M9679</guid>
      <dc:creator>Antonio_Opromol</dc:creator>
      <dc:date>2022-09-02T13:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: XIQ Site Engine  NBI start workflow from another workflow with passing a value in the variable i</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xiq-site-engine-nbi-start-workflow-from-another-workflow-with/m-p/92879#M9680</link>
      <description>&lt;P&gt;You should be able to accomplish this by sending "variables" which is JSON formatted data. I am not clear on if custom variables defined within the workflow can be referenced here - but try that...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;input StartWorkflowInput {
  #DEPRECATED - Replaced by operationId. NBI responses will not return this value anymore.
  clientMutationId: String
  id: Long
  #Unique identifier optionally passed into input object of any query/mutation call, returned in the corresponding response output.
  operationId: String
  path: String
  variables: Json
}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;variables: {deviceIP: "192.168.1.1"}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 16:14:51 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xiq-site-engine-nbi-start-workflow-from-another-workflow-with/m-p/92879#M9680</guid>
      <dc:creator>Robert_Haynes</dc:creator>
      <dc:date>2022-09-02T16:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: XIQ Site Engine  NBI start workflow from another workflow with passing a value in the variable i</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xiq-site-engine-nbi-start-workflow-from-another-workflow-with/m-p/92880#M9681</link>
      <description>&lt;P&gt;Hi Robert, I've already done this try, but doesn't work&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 16:56:45 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xiq-site-engine-nbi-start-workflow-from-another-workflow-with/m-p/92880#M9681</guid>
      <dc:creator>Antonio_Opromol</dc:creator>
      <dc:date>2022-09-02T16:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: XIQ Site Engine  NBI start workflow from another workflow with passing a value in the variable i</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xiq-site-engine-nbi-start-workflow-from-another-workflow-with/m-p/92883#M9682</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;I've found my problem and was that in value of my variable there were a /n character and removing this in effect the format&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;variables: {deviceIP: "value"}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;works well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem I need now to solve is that in my value string to set as variable can be present control characters in the middle or double quotes, and using a string with these chatacters the mutation executon fails and no variable value is set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 12:41:17 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xiq-site-engine-nbi-start-workflow-from-another-workflow-with/m-p/92883#M9682</guid>
      <dc:creator>Antonio_Opromol</dc:creator>
      <dc:date>2022-09-03T12:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: XIQ Site Engine  NBI start workflow from another workflow with passing a value in the variable i</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xiq-site-engine-nbi-start-workflow-from-another-workflow-with/m-p/92890#M9683</link>
      <description>&lt;P&gt;This one works for me:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;'''mutation { workflows { startWorkflow(input: {path: "%s", variables: {deviceIP: "%s"}}) {status, message}}}''' %(emc_vars["WorkflowToExecute"],varDevice['ip'])&lt;/LI-CODE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 05 Sep 2022 06:55:05 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xiq-site-engine-nbi-start-workflow-from-another-workflow-with/m-p/92890#M9683</guid>
      <dc:creator>Zdeněk_Pala</dc:creator>
      <dc:date>2022-09-05T06:55:05Z</dc:date>
    </item>
  </channel>
</rss>

