cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RoryDev
New Member

Model Driven App with Power Automate

Hi,

 

I am trying to run a Flow in a Model Driven App Solution (I have created the flow within the solution), however when I run the Flow I am getting a blank Login screen.

 

Example

 

The flow is part of Business Process Flow

RoryDev_0-1594672400309.png

the result is

 

RoryDev_2-1594672479768.png

When I check developer tools, the error says

 

HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
FlowApp.js:1969 Message Handler: Failure Response GetFlowWebsiteUrls: getFlowWebsiteUrls: Failed to get the Flow environment Id Response:
{failed: true, reason: "Type was not specified in the getDedicatedEnvironmentWebCall Context"}

 

Can anybody advice what I am doing wrong please ?

Thanks

- Rory

 
1 ACCEPTED SOLUTION

Accepted Solutions
Pranjali
Microsoft
Microsoft

Hello @RoryDev ,

 

I have couple of questions 

  • Are you using the BPF fields here?
  • Which trigger are you using?
  • Does the flow work fine when you 'Test' using previous successful run?

 

The client API function is responsible to pass the execution context, if that is missed, we can see issues like these.

To confirm if its what I am assuming, Can you try to debug this?

  1. Reproduce the issue again.
  2. Open the chrome debugger and go to the file MicrosoftFlowsIFrameControl.js
  3. Set a break point at line 158 (refer attached image)
  4. Retry reproducing the issue.
  5. When the breakpoint is hit, go to the console and check out the value of this.context.client.orgSettings.organizationId . It should be something like "{9E9EC642-B11A-447F-9C19-CE7CCA4F7065}" .

 

If that value is set for your org, then try setting the orgId variable to that value instead and continuing in the debugger.  The feature should then work.

 

Cheers!

Pranjali

View solution in original post

4 REPLIES 4
jlindstrom
Super User
Super User

Chances are there is some service url that is blocked. Is your environment locked down?

you cause tools like fiddler the find what is not responding. https://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/InstallFiddler

if it continues, open a support ticket.

 

Pranjali
Microsoft
Microsoft

Hello @RoryDev ,

 

I have couple of questions 

  • Are you using the BPF fields here?
  • Which trigger are you using?
  • Does the flow work fine when you 'Test' using previous successful run?

 

The client API function is responsible to pass the execution context, if that is missed, we can see issues like these.

To confirm if its what I am assuming, Can you try to debug this?

  1. Reproduce the issue again.
  2. Open the chrome debugger and go to the file MicrosoftFlowsIFrameControl.js
  3. Set a break point at line 158 (refer attached image)
  4. Retry reproducing the issue.
  5. When the breakpoint is hit, go to the console and check out the value of this.context.client.orgSettings.organizationId . It should be something like "{9E9EC642-B11A-447F-9C19-CE7CCA4F7065}" .

 

If that value is set for your org, then try setting the orgId variable to that value instead and continuing in the debugger.  The feature should then work.

 

Cheers!

Pranjali

View solution in original post

Thanks Pranjali!,

 

Yes that worked, by setting orgId to the GUID value.

 

So how can I automate this change into the process ? 

 

  • Are you using the BPF fields here? (No, not referencing the BPF fields)
  • Which trigger are you using? (PowerApps Trigger)
  • Does the flow work fine when you 'Test' using previous successful run? (YES)

Thanks again for your help,

 

Rory

Hello Rory,

 

You could temporarily use attribute dependency as a work-around for your scenario - 

https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/web-resource-d...

This is a known issue at Microsoft with Power automate, the fix should soon be available.

 

Cheers!

Pranjali

Helpful resources

Announcements
PA 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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (15,865)