Skip to main content
Known Participant
Jun 30, 2024 11:33 AM UTC
Question

a!save for record type to be set as null without brackets {null}

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()
)

4 replies

stefanhelzle0001
Brainy
Jun 30, 2024 1:27 PM UTC

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
)

Known Participant
Jun 30, 2024 1:40 PM UTC

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.

stefanhelzle0001
Brainy
Jun 30, 2024 2:03 PM UTC

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.