Announcements
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!
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/
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 914
11manish 627
Valantis 598