I am using below function on click of a button. I need to auto populate related project name in field. Display Name of field is Project and Name of the field is "abc_project". What should I pass in query string (data)?
OpenNewRequestPopup = () => {
let qs = "_abc_project_value={11111111-1111-1111-1111-111111111111}"
var pageInput = {
pageType: "entityrecord",
entityName: "abc_resourcerequest",
data: encodeURIComponent(qs),
}
var navigationOptions = {
target: 2,
width: { value: 50, unit: "%" },
position: 1,
}
console.log(pageInput)
Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
function success() {},
function error() {}
)
}