RE: XML working in FetchXML Builder but flow fails in power automate
This is the error message
Syntax error: character '<' is not valid at position 0 in '<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" >
<entity name="opportunity" >
<attribute name="name" />
<attribute name="estimatedvalue" />
<attribute name="estimatedclosedate" />
<attribute name="ownerid" />
<attribute name="statuscode" />
<attribute name="new_referraldate" />
<attribute name="new_forecast" />
<order attribute="estimatedclosedate" descending="false" />
<filter type="and" >
<condition attribute="statecode" operator="eq" value="0" />
<condition attribute="estimatedclosedate" operator="next-x-days" value="14" />
</filter>
<attribute name="opportunityid" />
</entity>
</fetch>
'.
This is the step which we seem to fail at and get the above error.

Thanks