Assignment to local variables in Expression rule

Certified Associate Developer

Hi,

I'm trying to save an array value to a local variable, it looks like getting saved, but when I check for the length of the local variable, I'm getting as 0. Where as when I save the same array during declaration of the local variable, I'm getting the length as expected. 

What I'm missing here ? what is the proper way of saving into local variables after declaring them. I've tried using a!save() but no luck.. :( 

Below are the snaps for your reference.

Assigning array after initialization 

Assigning array during initialization

  

TIA :)

  Discussion posts and replies are publicly visible