Hi.
Basically I am trying to get entries from multiple SharePoint lists and join them all together in an XML file.
Get items from list 1.
Apply to Each list 1 - this gets the Title from each list item.
Compose 1 - put Title inside the XML elements.
Get items from list 2
Apply to Each list 2
Compose 2
I then have a final Compose that puts Outputs 1 and 2 inside the XML headers.
I end up with all the XML I want but it also includes square brackets.
<?xml version="1">
<element>
[" <element2>title1</element2>"]
["<element2>title2</element2>"]
</element>
Is there any way to prevent or remove these square brackets?
I had to initialize a variable to turn the array output into a string and then it worked. Thank You!
In a compose action:
replace(replace(outputs('withBrackets'), '["', ''), '"]', '')
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,004
Most Valuable Professional