Uploaded image for project: 'Automation for Cloud'
  1. Automation for Cloud
  2. AUTO-1260

Variable created inside IF Block or Branch is not accessible outside of a block , if there is no variable created globally (after trigger) in Automation

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      When a variable is created only inside IF/ELSE Block or in a Branch then the variable is not accessible anywhere in Automation apart from the Branch.

      At the same time, if you create one Global Variable (after the trigger or before IF/ELSE block or branch) and then other variables created inside IF/ELSE Block or in a Branch will be accessible anywhere.

      Steps to Reproduce

      1. Create a Automation,
      2. Add If/Else Block or other Branch , create variable inside If/Else block
      3. Add Log action within If/Else block to Print Variable created in If/else block. It works fine.
      4. Now Add Log action outside If/Else block to Print Variable created in If/else block. It doesn't work.

      Expected Results

      Variables should be accessible in all places in the rule.

      Actual Results

      Variable is not accessible.

      Workaround

      1. Create Global Variable right after the trigger or before the IF/ELSE block or branch like below.
      2. Then all variables will be accessible.

       

            Unassigned Unassigned
            e8ddb9406228 Arvind Kishore
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: