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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / formula to use power a...
Power Apps
Unanswered

formula to use power automate flow in app

(0) ShareShare
ReportReport
Posted on by 29

I hope I'm ok posting this here and not the Power Automate forum. See below flow, its named "CurrentTemp". The idea will be do a button to be pressed in my app and its add an item in a sharepoint list this the current temp of the users location. The issue im having is how to get this working in Power Apps. The Get current weather step only allows me location as Getcurrentweather_location (within Power Apps) therefore the formula would be CurrentTemp.Run(Getcurrentweather_Location), however I don't know what to put in the bracket to gather the location? When making a manual trigger directly in Power Automate the Get current weather step allows me to choose city, country etc and gather automatically, however I do think I can use the manual trigger in Power Apps?

Screenshot 2023-04-27 155205.png

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    From Virtual Agents I pass it the following info

    TheRobRush_0-1682608613866.png

     

    So I imagine if you make the variable powerapps is passing in that format it would probably work

     

    City Name Zipcode

     

    TheRobRush_1-1682608677871.png

     

    In mine they are separate variable, which you could do, but I also think they would be fine as a single string separated by a space

     

     

  • mmollet Profile Picture
    3,187 on at

    You could do this from the powerapp as well using the MSN weather data connector.

    For example: MSNWeather.CurrentWeather(BingMaps.GetLocationByPoint(Location.Latitude, Location.Longitude).name, "M").responses.weather.current.temp -> Outputs current temp for current location.

  • TheRobRush Profile Picture
    11,128 Moderator on at

    That too, haha just assumed there was a reason you wanted to use flows

  • mmollet Profile Picture
    3,187 on at

    In case he does need to use flow could he combine our answers to make an easier way to do it? For example for the location in the MSN Weather flow step, just pass that to the flow from powerapps using:

    BingMaps.GetLocationByPoint(Location.Latitude, Location.Longitude).name

     

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Yes, just tested this and sending

    BingMaps.GetLocationByPoint(Location.Latitude, Location.Longitude).name

    to powerautomate will generate a proper location for the weather connector.

     

    @BPowerApps  If you would liek to use this go here and sign up for the /free/ version of the api, it should provide you enough functionality for your use case, looks like you can call on  it 125k times per year in free mode?

     

  • BPowerApps Profile Picture
    29 on at

    if I’m following correctly, when doing so like your images but with the Power Apps steps, the location only allows my to choose “Choose in Power Apps”. 

  • BPowerApps Profile Picture
    29 on at

    I don’t have to use Power Automate, however I’m quite new to it and thought it would be a good idea to help learn it. 

    I tried your suggestion in Power Apps and the formula doesn’t work. I type MSNWeather.CurrentLocation( then BingMaps isn’t recognised so I can’t follow the rest of the formula.

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Worked for me in a test liek so,

     

    TheRobRush_0-1682610793758.png

     

    Use the PowerApps V2 trigger, with a text input set to name Location.

     

    I then passed to it "Universal City, CA 91608"

     

    and referenced the location variable in locvation of the get weather.

     

    It ran properly and emailed me the weather as requested

     

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Yah that bingmaps is another datasource you have to add from the datasources tab, you then need to give it an API key which you get at the signup liink i shared above

  • BPowerApps Profile Picture
    29 on at

    I would need this to show for the users current location, would this still work?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard