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 Apps / Model Driven App: How ...
Power Apps
Answered

Model Driven App: How to open web page on mobile device?

(0) ShareShare
ReportReport
Posted on by 264

Hi, guys!

in model driven app I can open a new web page using this code

 

 

 

window.open('https://....sharepoint.com/:b:/s/D365/EQSdsdfopdofkpodfgUL3wByK9vCqp31yVBeP7bm93zhQ?e=FXsdBl', '_blank');

 

 

 

It works on Desktop and works on mobile device.

 

If I use promise it works on desktop, but doesn't on mobile device.

 

 

 

 let checkPrintResult = await promise;
 if (checkPrintResult === true) {
 Xrm.Utility.closeProgressIndicator();
 window.open('https://....sharepoint.com/:b:/s/D365/EQSgZjshdfhdfsfshflhflisudfe=FXsdBl', '_blank');

 

 

How to fix it?

Is there another way to open external link?

Categories:
  • Verified answer
    Linn Zaw Win Profile Picture
    2,996 on at

    Have you tried Xrm.Navigation.openUrl?

    Xrm.Navigation.openUrl(url,openUrlOptions)

     

    Here's the blog post for the sample script.

    https://www.crmcrate.com/javascript/how-to-open-an-url-in-dynamics-365-form-using-javascript/

     

  • Max77 Profile Picture
    264 on at

    @LinnZawWin Thank you! It works.

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 Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard