Bhubaneswar, Odisha, India
+91-8328865778
support@softchief.com

Open record as popup dialog on command button click using JavaScript DataVerse power apps

Open record as popup dialog on command button click using JavaScript DataVerse power apps

To Open record as popup dialog on command button click using JavaScript DataVerse power apps use below code.

function openSpecificStudentRecord()
{
	var pageInput = {
		pageType: "entityrecord",
		entityName: "fbs_student",
		entityId: "21f9e816-c9fd-ed11-8f6d-6045bdad157a" //optional - remove to open in create mode
	};
		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
			}
		);
}