@yashag2255, Didn't try the method shown in the link.
However, what I succeeded with doing is:
1. Get rows (V2) to run the query.
2. put all the field values into an array usig a ForEach action.
3. Used a Union function in a Compose action to union the array with itself
4. Used a join function to create a string from the array.

Very convoluted, but its the only way I got it to work! Phew!!