Skip to main content
elvisb958752
May 5, 2026
Question

State in appian

  • May 5, 2026
  • 6 replies
  • 0 views

Is there any way in Appian to capture the previous state?
I have a form with a couple of dop downs where the user selects different assignees for different tasks
I want to able to send an email only to the changed users. 
Is there any way to compare old user values with new ones to see if changes happen?

    6 replies

    stefanhelzle0001
    May 5, 2026

    The difference function allows you to compare two lists. Store the old selection to a local and compare it to the new on submit.

    elvisb958752
    May 5, 2026

    I cannot pass local variables to the process model. If i use the difference function the process model is gonna read them as null.

    stefanhelzle0001
    May 5, 2026

    Do you want to explain your current implementation in more detail? I am sure we can find a way to get this working.

    varuntejg243705
    May 6, 2026

    Hi [mention:cfee579f26fb4d8d97165cbefb2e3f36:e9ed411860ed4f2ba0265705b8793d05] ,

    Its basically a field level audit, but we need to store them in a local variables first and compare them, when clicked on Submit, just store the difference of the data from local variables into rule input and pass them into PM, that will be the best approach, stefan's answer states the same!

    elvisb958752
    May 13, 2026

    ur answer is the same as Stefan,  u need to understand that once u save them locally there is no difference anymore, ur comparing the same value, values never get updated locally, they get updated once u write them to database. I was able to find a solution, but thank u for ur answer.