I am trying to set an array I have to be null as a variable and not as an array
What I want: null
What I am getting: {null}
I tried indexing but it did not work
a!save( index(ri!CommitteeLevels, "[]", null()), null() )
Discussion posts and replies are publicly visible
I do not understand what you are trying to do to that ri!CommitteeLevels.
What do you try to do with the angular brackets in index()?
If you want to set ri!CommitteeLevels to null, just do that:
a!save( target: ri!CommitteeLevels, value: null )
I think what I am trying to say is clear, I am trying to avoid getting a null value in brackets, which is an array. which is with your solution did not work.
Sorry, but for me, it is not clear.
When you store a null value into a list type rule input, you will end up with a list.
And I do not understand why you try to use a a!save() inside an expression.
a!save() does not work outside a saveInto. You need to use it in a component where it has the saveInto parameter and also this will not work in expression Rule.