I want to populate an array with the defaults values , the size of array is dete

I want to populate an array with the defaults values , the size of array is determined at run time .

For test I create a rule with the dummy values:
with(
local!docInfo:{},

a!applyComponents(
function:append(local!docInfo,"Info"),
array:1+enumerate(5)
)

)

Here I am getting an exception :
Expression evaluation error at function a!applyComponents [line 4]: Could not cast from Text to Rule or Function Reference. Details: CastInvalidCould not cast from Text to Rule or Function Reference. Details: CastInvalid"

Can anyone let me know why this issue is arising? What needs to be done ?

OriginalPostID-168019

OriginalPostID-168019

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data