Skip to main content
March 4, 2024
Question

Update dictionary in if() function

  • March 4, 2024
  • 6 replies
  • 0 views

I am trying to insert data in dictionary in if condition and it shows reaction tree in output. I am new to appian please help me with this.

    6 replies

    konduruc733182
    March 4, 2024

    Hello [mention:ec7f88b172ca4e978db91ce2a1e10e03:e9ed411860ed4f2ba0265705b8793d05] 

    Where are you trying to perform this loop, is it in a saveInto parameter? Could you please share the complete code snippet. Also please do as below to insert your code.

    harshm4411
    March 4, 2024

    Hello,

    I believe you're attempting to use the a!save() function within an expression rule.The a!save() function requires saveInto parameters that are available in the interface components. Additionally, updating variable values directly in an expression rule is not possible. Such modifications can only be made within an interface, not within an expression rule.

    https://docs.appian.com/suite/help/23.4/fnc_evaluation_save.html

    March 4, 2024

    Thank you for explanation 

    harshitb6843
    March 4, 2024

    Use the a!update parameter to update a field in the dictionary. You cannot use a!save in an expression rule. 

    March 4, 2024

    Thank you for explanation 

    stefanhelzle0001
    Brainy
    March 4, 2024

    To add some details here. A "reaction tree" is a data structure in the internal Appian implementation that defines the data and actions taking place as a user interacts with a UI component and the "saveInto" of that component is triggered.

    https://docs.appian.com/suite/help/24.1/SAIL_Performance.html