Skip to main content

Notifications

Power Automate - General Discussion
Answered

Calling Flow in Power Apps: Google Books API

Posted on by 17
I have a flow I set up in Power Automate for my Power App that takes an ISBN number as it's input and makes a GET request to Google Books' API. The book information is stored in a variable in the Power App. This is what the flow looks like. 
 
When I test the flow using power automate, any ISBN I test with is passed to the HTTP request and I get the book information. When I try to run the power automate flow from the power app, the ISBN isn't passed to the HTTP request. 
 
Test with Power Automate
 
With Power Apps;
The number is obtained from the power app
 
but it's not passed to the ISBN. The field is blank when the request is made.
 
You get a result but just not the right one
 
The ISBN value isn't being passed to the HTTP request. Also, it's not because the data types are different (I ran a test to see whether it mattered although I can't see it among the many test flows I ran).
Categories:
  • Verified answer
    CU12091158-0 Profile Picture
    CU12091158-0 17 on at
    Calling Flow in Power Apps: Google Books API
    So I figured out the problem with FLMike's answer as a nudge in the right direction. I had already put code within my Power App to convert the ISBN number into text. Even my variables list showed that my ISBN variable was text. But when it got passed to power automate, the "text" was still a number. I decided to instead take in a number in the power automate flow instead of text. And now it works. 
  • FLMike Profile Picture
    FLMike 26,162 on at
    Calling Flow in Power Apps: Google Books API
    HI
     
    As you can see in one place you pass it as a Text, from the App you are passing it as an Number.
     
    You need to make sure from the App you are sending it as Text, not a number.
  • Suggested answer
    Expiscornovus Profile Picture
    Expiscornovus 30,049 on at
    Calling Flow in Power Apps: Google Books API
    Which formula did you use in your Power App? 
     
    And what is the reason you are using a response action and not the respond to a power app action?
     
    Below is an example how you could return a result.
     
    In the below fx the result is retrieved and stored in a Flowresult variable. The run uses the input from the TextInput1.
     
    Set(FlowResult, CallingFlowinPowerAppsGoogleBooksAPI.Run(TextInput1.Text).result)
     
     
     

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

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 141,065

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,407

Leaderboard

Featured topics