Solved
Test
Here is the use case Name1 is the section names value1 is the text value,when next section name starts with item2 before empty section names consider as section names with the text followed by as mentioned in the output
a!localVariables(
local!testdata: {
{ "Name1": "Item1", "Value1": "Data for Item 1" },
{ "Name1": null, "Value1": "Different data for Item 2" },
{ "Name1": null, "Value1": "Some other kind of data" },
{ "Name1": "Item2", "Value1": "Another example of data" },
{ "Name1": null, "Value1": "Random data like GBP 50,000" },
{ "Name1": "Item3", "Value1": "Data related to an event or value" },
{ "Name1": null, "Value1": "Adjustable by percentage of revenue" },
{ "Name1": null, "Value1": "Premium payable quarterly" }
},
local!testdataexpected output is
[
{ "section": "Item1", "fullText": "Data for Item 1 Different data for Item 2 Some other kind of data" },
{ "section": "Item2", "fullText": "Another example of data Random data like GBP 50,000" },
{ "section": "Item3", "fullText": "Data related to an event or value Adjustable by percentage of revenue Premium payable quarterly" }
]
@Stefan Helzle [mention:b45a4f6a20b14a008e4e0ec732a8bf98:e9ed411860ed4f2ba0265705b8793d05] [mention:f5e81b8502fa4e77ad12697686a4fc56:e9ed411860ed4f2ba0265705b8793d05] [mention:2df2892a4df7486f9775b4d2f0e405fd:e9ed411860ed4f2ba0265705b8793d05] [mention:3f9551bc38d94a79ae62f9d520dbad6d:e9ed411860ed4f2ba0265705b8793d05] [mention:ba9672c2f5294cb98c0a2b8fb79cf967:e9ed411860ed4f2ba0265705b8793d05]
