Hello,
I have a little problem.
I have a CDT which contains a list variable: 'type!{urn:com:appian:types:XX}XX'(z(List of Text String))
I do a forEach from another list to take values: forEach(local!auxList, fv!item.Variable), and the result is : List of Text String: 3 items {a,b,c}
Well, i am trying to put that list( {a,b,c}) into the firts CDT in variable "z" but it doesnt works.
I tried to put the foreach inside: 'type!{urn:com:appian:types:XX}XX'(z:forEach(local!auxList, fv!item.Variable)))
and save first in a local variable and then put it:
local!aux:forEach(local!auxList, fv!item.Variable)
'type!{urn:com:appian:types:XX}XX'(local!aux)
Both of them didnt work. Someone knows a way to do it works?
Thank you so much.
Discussion posts and replies are publicly visible
Hi mteresaCan you try this as this will create 3 CDT for the variables a,b,cIf this is what you require.
a!forEach( local!auxList.Variable, 'type!{urn:com:appian:types}test'(z: fv!item))
thank you but doesnt work
'type!{urn:com:appian:types:XXX}XXX'( A: local!D.X B: a!forEach( local!D, fv!item ), C: local!D.X )
in B, fv!item is aString, so i want there a String list.
if local!D is list of string values and that value you need to save in single variable then you make it as to single string by using
tostring()
'type!{urn:com:appian:types:XXX}XXX'( A: local!D.X, B: tostring(local!D), C: local!D.X)
thank you