web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to assemble a XML ...
Power Automate
Unanswered

How to assemble a XML for Fetch Xml Query field dynamically?

(0) ShareShare
ReportReport
Posted on by 25


Let's suppose that my values come from a array, like: {'54','55','56'}

 

How can I dynamically assemble the xml below ( in the values tags )?

 


helio1981_0-1714050547360.png

 

 

 

<fetch top='5'>
	<entity name="abc">
		<attribute name="abc1" />
		<attribute name="abc2" />
		<filter type="and">
		 <condition attribute="abc2" operator="in">
			<value>999-53</value>
			<value>999-55</value>
		 </condition>
		</filter>
 </entity>
</fetch>

 

 

 

Thank you in advance

 

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi, @helio1981 

    You can refer to this flow to generate the dynamic <value>:

    vyueyunmsft_0-1714098451964.png

    item()
    join(body('Select'),decodeUriComponent('%0A'))
     
     
     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard