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 / Use of XMLHttpRequest ...
Power Apps
Unanswered

Use of XMLHttpRequest supported in PCF

(0) ShareShare
ReportReport
Posted on by 2

Hi All.

 

We received a requirement from the customer, and to fulfill it, we built a PCF control. Within this PCF control, there is a need to make calls to an external API (Suppose we wish to trigger a Power Automate flow with the type [When a HTTP request is received].). We have implemented this functionality using XMLHttpRequest. Is this approach supported, or is there a better alternative for achieving the same.

 

Awaiting a response.

Thanks!

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    XMLHttpRequest might be used to implement such requirements and I believe it'll be supported. There are 2 alternative approaches though:

    1. Clientside - Browser's native fetch api - https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch Under the hood - it'll be pretty much the same but fetch supports async/await that will do code a bit more readable and easier to follow.

    2. Moving calls to external API to serverside through the plugins, placing calls of external api to plugin code, adding action/custom api and calling created action/custom api from PCFs code using webapi.

    3. Alternatively if automation that you want to call would be in Power Automate you can create Custom API and add the trigger "When an action is performed" and call that action using webapi. I composed the post recently - https://butenko.pro/2023/11/06/dataverse-when-an-action-is-performed-trigger-doesnt-fire-what-to-do/

  • Balasaheb Profile Picture
    2 on at

    Hi,

     

    Thanks for your response. The information you provided is very useful. We will go through it.

     

    Thanks

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard