Skip to content

Instantly share code, notes, and snippets.

@pawelgradecki
Created October 29, 2017 21:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pawelgradecki/a9c9a9f0a5d0aac96ad0814cc0e9263a to your computer and use it in GitHub Desktop.
Save pawelgradecki/a9c9a9f0a5d0aac96ad0814cc0e9263a to your computer and use it in GitHub Desktop.
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