Hi,
I have created a custom button and placed it on Dashboard sub-grid of Entity1, On click of that button I am opening a new form of Entity2 but I could not link them both on Save&Close of the Entity2 Form. There is no link in between both the entities.
I tried retrieving the Id of the selected record from the view and updating on Save&Close of the form(which opens on button click)
Is there any way we can relate both Entity1 and Entity2 so that I need to update Entity1 fields on Create of Entity2 record? Please see the code I have used to open the form and suggest me. Thanks for your help!!
Xrm.Navigation.navigateTo({pageType:"entityrecord", entityName:"new_entity2", formId: "3EA65162-956E-4C11-B65D-5183FD891656", formType:2}, {target: 2, position: 1, width: {value: 50, unit:"%"}});