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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Unable to launch power app through D365 F&O test environment.

(1) ShareShare
ReportReport
Posted on by 4
Hi team,
 
We have created a power app and the url for the app is https://apps.powerapps.com/play/e/EnvironmentId/a/Appid?tenantId&sourcetime=1749142824157&companyid=ABC&serviceagreementid=SA98667&brandid=XYZ&customerid=C0099878. In D365 F&O we have a button through which we're calling this app and passing the selected agreement id and other parameters so it opens the powerapp in the same browser's next tab with passed paramteres. Now this customisation is working fine in dev box. However when its moved to test environment its throwing this error;- This page isn’t working right now. test.sandbox.operations.dynamics.com can't currently handle this request.HTTP ERROR 500. 

Also when we launch it from test ,the url of the app is like test environment url + app url. However when launched from dev box it just opens the app url only.
please help and suggest how we can overcome this issue in test enviornment.
below is the code that I am using:
 public void launch(str _powerAppUrl)
 {
     InteropPermission permission;
 

     permission = new InteropPermission(InteropKind::ClrInterop);
     permission.assert();
 
     Browser br = new Browser();
     br.navigate(_powerAppUrl, true);
 
     CodeAccessPermission::revertAssert();
 }
 
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    239,840 Most Valuable Professional on at
    When you say "the url of the app is like test environment url + app url", do you mean _powerAppUrl parameter? If so, it means that the problem isn't in the method you showed us, but in code calling it, isn't it?
     
    By the way, you can throw remove all your code using InteropPermission class.
  • CU23061026-0 Profile Picture
    4 on at
    So in test enviornment when I click on the button to open the power app with passed parameters in next tab of the browser then I see the URL opened in the next tab is like:
    https://test.sandbox.operations.dynamics.com/%22https://apps.powerapps.com/play/e/EnvironmentId/a/Appid?tenantId&sourcetime=1749142824157&companyid=ABC&serviceagreementid=SA98667&brandid=XYZ&customerid=C0099878
    So its appending the test url in front of power app url which I think is the issue.
     
    But in dev its only this when we click on the button : 
  • Martin Dráb Profile Picture
    239,840 Most Valuable Professional on at
    I strongly recommend using the debugger. As you see, the final result doesn't tell you much about what happenned in your code.

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 481 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 429 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 391

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans