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 Platform Community / Forums / Power Apps / Call API request on bu...
Power Apps
Unanswered

Call API request on button select

(0) ShareShare
ReportReport
Posted on by 8

Hello, 

 

I am trying to make an api get request when a user clicks a button. The set up is that  the user enters an ID number into text input 1 and then clicks the button which should use the API to return info related to this ID.

 

I have already set up a custom connector and loaded the connection into the app. The connector set up is as below:

 

PowerCreator_0-1710162995332.png

 

On the on select of the button in question I am using this code, 

UpdateContext({CameoAPI : 'Cameo Search Input'.Text}); GetPaymentLink.PMAPI()
 
I am using a variable to try pass the ID entered into the text input box as this was what was advised, however, I cannot seem to figure out how to pass the information with the request as when entering it in the parenthesis I get an error that no arguments are expected. 
 
Please can someone advise how this should be done?
Categories:
I have the same question (0)

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard