web
You’re offline. This is a read only version of the page.
close
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) {

}
);
}

I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 39

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans