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 Automate / Embed Power Automate i...
Power Automate
Unanswered

Embed Power Automate in webApp

(0) ShareShare
ReportReport
Posted on by 6

Hello, I am trying to embed Microsoft Power Automate into my webApp, I'm a pretty new developer and have already tried doing the steps listed on the official documentation. I set up the link to "https://flow.microsoft.com/Content/msflowsdk-1.1.js" in my index.html file and it seems to be loading, but when trying to compile, it gives me a ReferenceError: MsFlowSdk is not defined. How can I fix this? Here is the code I'm using with ReactJS:

 

import React, {Fragment, useState} from 'react'; import SideNavAutomatizar from './SideNavAutomatizar'; import './limites.css'; export default function Automatizar() { /*global MsFlowSdk*/ var sdk = new MsFlowSdk({ hostName:'https://flow.microsoft.com', locale:'es-es' }); window.msFlowSdkLoaded = function(){ var sdk = new MsFlowSdk({ hostName: 'https://flow.microsoft.com/'}); var widget = sdk.renderWidget('templates', { container: 'flowDiv'}); } return (

<div id="flowDiv" class="flowContainer"></div>

) }

Categories:
  • eric-cheng Profile Picture
    5,171 on at

    Hi @joactr ,

     

    Here is another way via iframe if you want to go down that route

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

  • joactr Profile Picture
    6 on at

    Hi @eric-cheng , will I be able to look at the current flows I have and be able to edit them if I use that way? 

    Thanks for your answer!

  • eric-cheng Profile Picture
    5,171 on at

    Hi @joactr ,

     

    Sorry, I have noticed I gave you PowerApps link, here is the PA iframe link.

     

    Personally I haven't tried but based on the link, it looks promising.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • joactr Profile Picture
    6 on at

    That's precisely the documentation I was talking about, I can use the iframe with the non authenticated widget, but whenever I try to use any other widget it just gives me the error I described.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard