Activity Class Parameter - Usage of Index vs dot

Hi, I am trying to save the values of an activity class parameter in a variable inside a node. 

In the expression of custom output AC!Variables.restaurant works and passes values correctly to the target process variable. However when I try the same with index(ac!Variables,"restaurant",null) it does not work and passes null values to the target process variable which subsequently errors out down the line. 

I have tried several times but 'dot' works and 'index' does not.

Of course not a big deal but I would prefer using index than dot. Anything I am doing wrong?  or shall I raise this with Appian Academy?

thanks

jaideep

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to Jaideep Banerjee

    The difference here when you use dot notation if your process variable is not an array type I think it is taking the value and casting appropriate type. When you use the index it returns list of values, because of this it may ignoring the values (It shouldn't ignore return value, if that is happening it is an issue with Appian). Also as Stewart mentioned what is your process variable type. 

Children