-Using the code below, we are able to get the parent record ID using the lookup associated to the child form.
-Etc is the object type code of the entity, you can query this from the database(For more information Please follow this link: http://www.oracle-forums.com/entity-obj ... t6668.html)
Code: Select all
function reloadCaseForm() {
var caseID = Xrm.Page.getAttribute("xyz_caseid").getValue()[0].id; //get id of case from lookup
var url = Xrm.Page.context.getServerUrl() + "/main.aspx?etc=112&pagetype=entityrecord&extraqs=&id=" + caseID;
window.open(url, "_parent"); //open the parent form given the url
}