I have this http request:
https://prices.azure.com/api/retail/prices?$filter=serviceName eq 'Virtual Machines' and priceType eq 'Reservation' and Location eq 'EU West'
and I'm wondering how to call this in Power Automate.
I tried doing this but I don't think it worked since it's returning values from other locations:
But I don't it's working since the data returned includes all serviceNames, not just Virtual Machines. It also returns records that are not in the Location of EU West.
I'm just unsure how to create those filters in Flow. Thank you.
Solved! Go to Solution.
Please try putting this whole string in the URI field, with the Queries field empty
https://prices.azure.com/api/retail/prices?$filter=(serviceName eq 'Virtual Machines') and (priceType eq 'Reservation') and (Location eq 'EU West')
Sorry. Thought that would do it. Filtering the array later will work, but have you tried this?
Once entered, when you "peek code" within the ellipsis, it shows similar JSON queries parameter to your initial pic.
However, the serviceName and Location properties don't have the extra space shown in your initial pic.
Yeah that's the same thing I did, I just did peek code. It doesn't seem to filter on anything for some reason, it returns records for Storage serviceNames and Locations other than EU West.
Check out the new Process Advisor community forum board!
Check out new user group experience and if you are a leader please create your group
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.