Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I've got this API documentation, and I'm trying to return a table in PowerBI, is it possible to embed it in a let statement in Power Query M Language?
<?php try{ $client = new SoapClient('http://ws.site.com/soap/vrmsInputServices.php?wsdl');
$credentials = array(
"Language" => "ES", "UserName" =>
"username",
"Password" => "password" );
$criteria = array();
$request = array( "Credentials" => $credentials );
$result = $client->GetCodes($request);
print_r($result); } catch(SoapFault $e){ echo $e; }?>
Many thanks
Hi @AGo ,
If you want to use POST in REST API, you could refer to web-services-and-post-requests-in-power-query and postimport for details.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I try to pass the post statement in xml wit this query, I was expecting wrong credential message but it returns Values and Attribute lists for this namespace
http://schemas.xmlsoap.org/wsdl/ |
let
content ="<soapenv:Envelope>
<soapenv:Header/>
<soapenv:Body>
<xsd:GetAccommodationCodesRQ>
<crs:Credentials>
<crs:UserName>?</crs:UserName>
<crs:Password>?</crs:Password>
</crs:Credentials>
</xsd:GetCodesRQ>
</soapenv:Body>
</soapenv:Envelope>",
Source = Xml.Document(Web.Contents("http://ws.site.com/soap/vrmsInputServices.php?wsdl", [Content=Text.ToBinary(content)]))
in
Source
Maybe @ImkeF can help
Thanks