Open Entity List view as popup dialog in power apps DataVerse using JavaScript
If you want Open Entity List view as popup dialog in power apps data verse using JavaScript using command button then use below code.
Here I am opening student view as popup.
function openEntityList()
{
var pageInput = {
pageType: "entitylist",
entityName: "fbs_student",
viewId:"10a6d955-20df-ed11-8847-6045bdad1c30",//optional
viewType:"savedquery" //optional
};
//optional target 1=inline (default), 2=dialog, position 1=center (default), 2=side
var navigationOptions = {
target: 2,
height: {value: 80, unit:"%"},
width: {value: 70, unit:"%"},
position: 1
};
Xrm.Navigation.navigateTo(pageInput,navigationOptions).then(
function success() {
// Run code on success
},
function error() {
// Handle errors
}
);
}