I am using a plugin function "readcsvlogpaging" to read Appian logs which gives me result in type CsvContents(which contains rows(list of Text String)).
I also got a CDT which could hold these values. How do I map the list of text string to CDT fields.
Is there a way I could loop around the rows and assign each of those field values to a CDT? using expression rule or a script task?
Any help here would be appreciated. Thanks!
Discussion posts and replies are publicly visible
Hi Sathish,
If the resultset of function is of type listOfVariant or dictionary, You can use foreach loop to map to corresponding cdt field.
i.e:
a!forEach(
item: resultset,
expression: type!YOURCDT(
field1: fv!item.[1],
filed2: fv!item.[2].
)
Share your resulset to comment more on that.