Hey,
When using Xrm.Navigation.navigatTo() within the pageInput parameter, there is a property called data, which is an object that lets you specify default values for fields on the form that is being navigated to.
I'm trying to figure out the format or just see an example of that. The Microsoft docs links to a page that doesn't make sense to me as I'm a rookie. The link to follow starts talking about populating the extraqs url parameter.
Would it look something like this:
let pageInput = {
pageType: 'entityrecord',
entityName: cloneEntity,
entityId: newRecordGuid,
data: {
prefix_fieldName: 'DEFAULT FIELD VALUE'
}
};
Xrm.Navigation.navigateTo(pageInput).then(
(success) => {
// successCallback
},
(error) => {
// errorCallback
}
);
Thanks