Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

navigateTo page

(0) ShareShare
ReportReport
Posted on by 5

4657.alert.PNG6558.error.PNG

Hello everyone, 

I've been trying to navigate to a different page with the name 'cr913_designation' right after the alert pop up appears and clicking yes. First, with the code below , the pop up appears as shown in the first picture above. After clicking yes another pop up appears shown in the picture above with an error and i cannot navigate to the second page. Can someone please help me with this problem and double check with me the code if i did anything wrong ?

The code as shown : 

function OpenAlert(){


var alertStrings = { confirmButtonLabel: "Yes", text: "This is an alert.", title: "Sample title" };

var alertOptions = { height: 120, width: 260 };


Xrm.Navigation.openAlertDialog(alertStrings, alertOptions).then(
function success(result) {
function ();
},
function (error) {
console.log(error.message);
}
);
}
function navigate() {

var pageInput = {
pageType: "custom",
name: "cr913_designation",
};

Xrm.Navigation.navigateTo(pageInput)
.then(
function () {

}
).catch(
function (error) {

}
);
}

  • Suggested answer
    meelamri Profile Picture
    13,214 User Group Leader on at
    RE: navigateTo page

    Hi, 

    Did you add your custom page to the model-driven app ? 

    pastedimage1643383706465v1.png

    You don't need to show the page in navigation. 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,430 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,043 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans