web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

HTTP Request to XML

(0) ShareShare
ReportReport
Posted on by

hi,

 

I try to get data from XML File, with Microsoft Flow.  I searched but ı didn't learn enough knowledge. "http://www.tcmb.gov.tr/kurlar/today.xml " website is contain exchange rate, and ı must get it data to my sharepoint list. How to create Flow?

Thank you... 

 

 

soru.png

 

 

 

 

Categories:
I have the same question (0)
  • Community member Profile Picture
    on at

    You can use the forum ideas to vote for this feature.

     

    While the underlying platform do support this (Look at Logic Apps @json, @xpath function), it looks like we cannot do this from the Flow designer today.

  • Community Power Platform Member Profile Picture
    on at

     Hi SameerCh,

     

    thank you for your answer,

     

    Someone has suggested a method , to split the body into  sharepoint columns. he said, For example to ForexSelling Item:

     

    "@ {body ('ForexSelling'). Json.path.to.value} "

     

    But didn't work it.

     

    Do you have any idea?

     

    Thank you 🙂 

     

     

     

  • Community member Profile Picture
    on at

    The issue is that, from the Flow designer (UI), you still will not be able to construct the underlying expression - like the one suggested below.

  • sourche Profile Picture
    2 on at

    Hi,

     

    Method: GET

    URL: https://www.tcmb.gov.tr/kurlar/today.xml

      Sample Xml Body

    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="isokur.xsl"?>
    <Tarih_Date Tarih="21.10.2022" Date="10/21/2022" Bulten_No="2022/201" >
    <Currency CrossOrder="0" Kod="USD" CurrencyCode="USD">
    <Unit>1</Unit>
    <Isim>ABD DOLARI</Isim>
    <CurrencyName>US DOLLAR</CurrencyName>
    <ForexBuying>18.5741</ForexBuying>
    <ForexSelling>18.6076</ForexSelling>
    <BanknoteBuying>18.5611</BanknoteBuying>
    <BanknoteSelling>18.6355</BanknoteSelling>
    <CrossRateUSD/>
    <CrossRateOther/>
    </Currency>
    <Currency CrossOrder="9" Kod="EUR" CurrencyCode="EUR">
    <Unit>1</Unit>
    <Isim>EURO</Isim>
    <CurrencyName>EURO</CurrencyName>
    <ForexBuying>18.1246</ForexBuying>
    <ForexSelling>18.1573</ForexSelling>
    <BanknoteBuying>18.1119</BanknoteBuying>
    <BanknoteSelling>18.1845</BanknoteSelling>
    <CrossRateUSD/>
    <CrossRateOther>0.9758</CrossRateOther>
    </Currency>
    </Tarih_Date>

     

    MehmetCelik_0-1666442712046.png

    Euro Value : float(first(xpath(xml(body('TodayExchangeRates')),'Tarih_Date/Currency[@Kod="EUR"]/ForexSelling/text()')))

    Usd Value  : 

    div(variables('EuroValue'),float(first(xpath(xml(body('TodayExchangeRates')),'Tarih_Date/Currency[@Kod="USD"]/ForexSelling/text()'))))

    MehmetCelik_1-1666442751367.png

     

    Regards,

    Mehmet Şirin ÇELİK

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard