Hello All,
Can someone please tell how we can make Key/Value from an array of string? I have an array lets say "arr1" containing the below value
arr1[1] Name:XYZ
arr2[2] Age:23, etc
Here Name and age is not declared as a variable, They act as string only. I want to make Name and Age as variables with respect to their stored values as "XYZ" and "23". So that I can easily call the values by calling Name or Age.
Discussion posts and replies are publicly visible
Hi Vivek,
Please find the sample code,
=with( local!Input_txt:"Name=XYZ/Age=23/Profession=Student", a!forEach( split( local!Input_txt,"/" ), with( local!ItemValues: split(fv!item,"="), { index(local!ItemValues,1,""), index(local!ItemValues,2,"") } ) ) )