I am trying to populate a lookup field in my SharePoint list with multiple values. I want to keep the values that are already there and add a new value to it.
To do this, I have appended the current values (Ids of the column) in an Apply to each like this:
I then use another Append to string variable to add the new value.
From there, I use another apply to each and apply a split to the string variable:
I use an append to array variable with
int(items('Apply_to_each'))
So the steps look like this.
The array variable I add to my Update items. However, my array variable is showing up like this:
[" 182\n"," 181\n"," 186\n"] and it's saying not convertible to integer.
What am I doing wrong here and is there a better way I could be achieving this?