cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AmateurPower
Frequent Visitor

Invalid number of arguments on a button flow for Google API

I am currently trying to use a flow in Power Automate to be able to return an address using Lat and Long with Google Maps API rather than Bing. 

I've set up a flow within Power Automate as below:

 

AmateurPower_0-1620093550109.png

 

This is my data connection, did I maybe add the flow in incorrectly? 

AmateurPower_2-1620093608803.png

 

This is the OnSelect that I am trying to use on a button:

ConvertAddress.Run(Location.Latitude & "," & Location.Longitude)

 

End result: 

AmateurPower_3-1620093674701.png

 

5 REPLIES 5
WarrenBelz
Super User
Super User

Hi @AmateurPower ,

You need to use "Ask in Power Apps" somewhere in the Flow to generate the parameter request.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi @WarrenBelz,

 

Thanks for your input, when I search for the power apps connector in Power Automate, only the 'respond to a power app or flow' appears. 

 

 

BlessedCobba
Resolver I
Resolver I

Hi @AmateurPower 

as warren suggested, instead of trying to pass the long & lat with the on select, in the get http request you need to use the dynamic content to ask power apps for the information needed for the request

 

BlessedCobba_0-1620101443546.png

 

Hi @AmateurPower ,

I meant one of your parameters has to come from Power Apps. Here is one I posted today - this is basic Flow principles when working with Power Apps

WarrenBelz_0-1620111289002.png

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

v-albai-msft
Community Support
Community Support

Hi @AmateurPower ,

How are things going? Have you solved your issue?
If your issue is not resolved, please don't hesitate to let us know.
Best Regards,
Allen

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,009)