This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function openEntityForm() { | |
var entityFormOptions = { | |
entityName: "account", | |
useQuickCreateForm: false | |
}; | |
var formParameters = { | |
name: "Sample Account", | |
description: "This is example of how you can prepopulate the fields on opened entity" | |
}; | |
Xrm.Navigation.openForm(entityFormOptions, formParameters).then( | |
success => { | |
console.log(success); | |
}, | |
error => { | |
console.log(error); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment