Hi, I need help with something. Sorry for the basic question.
I'm trying to process an array, extracting values from a string separated by delimiter.
What my flow is doing is:
1. A new form is submitted
2. The flow is triggered. Get response detail
3. Get an item from the form which has multiple lines of string. Example:
formdata:
RE - 100/120/1.03
YE - 2581/2871/1.03
BE - 0.152/0.572/1.03

4. Split this data into an array with 3 items, using split(formdata, newline Constant). Assign result in variable Lists: IR End to End (Earth)
*newline Constant is a variable with the value decodeUriComponent('%0A')
*formdata is one of the data in the form response. See attachment for actual code
So far I get the expected output which is ["RE - 100/120/1.03","YE - 2581/2871/1.03","BE - 0.152/0.572/1.03"]
5. Obtain the first element in the array, using first(variables('Lists: IR End to End (Earth)'))
The expected output is:
RE - 100/120/1.03
But instead I get the output :
[

Can anybody help me on why is this happening? Thanks in advance.
*I've even set this up with another variable not from the form, but I get the same result.
