- Katılım
- 16 Eylül 2008
- Mesajlar
- 1,291
- Excel Vers. ve Dili
- Microsoft Office 2019 English
Merhabalar,
Aşağıda yazılı olan Query ile verileri alabiliyorum buraya kadar sorun yok.
Fakat ben sirket kodunu herhangi bir excel sayfasında parametrik olmasını istiyorum. 001 yazan şirket kodunu parametre sayfasında değiştirerek sorguyu alsın istiyorum.
Bunu nasıl sağlayabilirim ?
let
url = "https://xxx.com/Webservice.asmx",
SOAPEnvelope="<soap:Envelope xmlns:xsi=#(0022)http://www.w3.org/2001/XMLSchema-instance#(0022) xmlns:xsd=#(0022)http://www.w3.org/2001/XMLSchema#(0022) xmlns:soap=#(0022)http://schemas.xmlsoap.org/soap/envelope/#(0022)>
<soap:Body>
<PerMas xmlns=#(0022)http://tempuri.org/#(0022)>
<username>test</username>
<password>test</password>
<sirkod>001</sirkod>
</PerMas>
</soap:Body>
</soap:Envelope>",
options=[
#"Content-Type"="text/xml; charset=utf-8"
],
Source= Xml.Tables( Web.Contents(url,[Content=Text.ToBinary(SOAPEnvelope),Headers = options])),
Table = Source{0}
Aşağıda yazılı olan Query ile verileri alabiliyorum buraya kadar sorun yok.
Fakat ben sirket kodunu herhangi bir excel sayfasında parametrik olmasını istiyorum. 001 yazan şirket kodunu parametre sayfasında değiştirerek sorguyu alsın istiyorum.
Bunu nasıl sağlayabilirim ?
let
url = "https://xxx.com/Webservice.asmx",
SOAPEnvelope="<soap:Envelope xmlns:xsi=#(0022)http://www.w3.org/2001/XMLSchema-instance#(0022) xmlns:xsd=#(0022)http://www.w3.org/2001/XMLSchema#(0022) xmlns:soap=#(0022)http://schemas.xmlsoap.org/soap/envelope/#(0022)>
<soap:Body>
<PerMas xmlns=#(0022)http://tempuri.org/#(0022)>
<username>test</username>
<password>test</password>
<sirkod>001</sirkod>
</PerMas>
</soap:Body>
</soap:Envelope>",
options=[
#"Content-Type"="text/xml; charset=utf-8"
],
Source= Xml.Tables( Web.Contents(url,[Content=Text.ToBinary(SOAPEnvelope),Headers = options])),
Table = Source{0}