Reputation: 55
I have a logic app which successfully calls a SOAP api and gets an XML string.
The XML encoding is flawed and in original form cannot be decoded by the built in Transform XML.
If I replace ‘xmlns=‘ with ‘xmlns:foo=‘ then the decoder works. My problem is implementing the replace function.
I tried dynamic content in the logic app input and it successfully replaced the required text but also made undesired changes: • added an ‘x’ at beginning • \r and \n all over the place
How can replace the text cleanly?
Upvotes: 1
Views: 886
Reputation: 478
@daniel - As @johns-305 suggested, first thing to take care of should probably be fixing that encoding issue so that your Transform XML can work properly.
Here's great blog post by Logic Apps engineer on how to solve this type of issues: Support non-UTF payloads in Logic App with a conversion Azure Function
Upvotes: 1