cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alistairhunt
Frequent Visitor

Power Automate's JavaScript Software Developer Kit - Approvals Center

The initialization of the MsFlowSdk for the Approvals Center does not work when the hostName is defined as window.location.origin running from the local machine.

 

Using the code from link on this page (Integrate Power Automate with web sites and apps) to load the Templates widget works fine with the following initialization

 

            var sdk = new window.MsFlowSdk({
                hostName: window.location.origin,
                locale: 'en-us',
                hostId: window.WellKnownHostIds.WIDGETTEST
            });
 
However, when using the same approach to display the Approval Center widget this initialization fails. To get the Approvals Center widget to display in my local (VS Code) environment I had to set the hostName parameter to https://flow.microsoft.com/.
0 REPLIES 0

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,345)