Skip to main content
June 30, 2024
Question

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

  • June 30, 2024
  • 4 replies
  • 0 views

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
June 30, 2024

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
)

June 30, 2024

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
June 30, 2024

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.