cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
u4jaanus
Resolver I
Resolver I

Building Dynamic XML/JSON content

Hi,

Tricky one.

I have created a flow which for SOAP requests which is working fine.. however I have a need of adding dynamic content in the body of that flow. I cannot do that in Power Automate as Body Tag does not support dynamic data.

I am trying to create my xml request in PowerApp which then could be passed as whole in Body of my SOAP request via variable.

Could you please advise if this is possible. Example XML is below. I want to create dynamic tags for <product>containing products from a collection?

<sRequest xsi:type="xsd:string"><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
                                <kmsgsimple id='' password=''>
                                <account>AM10</account>
                                <product mode='productlist' maxrecs='' page=''></product>
                                <branch>01</branch>
                                <productlist>
                                <product>DYNAMIC</product>
                                <product>DYNAMIC</product>
                                <product>DYNAMIC</product>
                                <product>DYNAMIC</product>
                                <product>DYNAMIC</product>
...
                                <pricesasatdate>DYNAMIC CURRENT DATE</pricesasatdate>
                                </productlist>
                                </kmsgsimple>]]>
         </sRequest>

Thank you

2 REPLIES 2
StevePenner
Helper I
Helper I

Can you adapt this to your needs: Call HTTP Request from a Canvas Power App using Flow and get back Response | Power Automate 

 

Is using SOAP markup required? Isn't using a REST API easier?

 

Hi

unfortunately; my data source only support, SOAP with wsdl, cant do http calls :(.

i have solved the problem and will post solution later; I am now stuck in a new problem 🙂

 

thank you

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,207)