
Hello,
I would like to create a Side Pane with Xrm that shows the associated records when in a specific record main form.
Let's say we are in a record of Table1 associated with 3 records of Table2, I would like to show those 3 records in a Side Pane.
In the documentation of Xrm Navigate, there is the relationship object that seems to work for this purpose but I can't find any exemple showing how to use it and since i'm not an expert in JavaScript I can't made it work myself.
I especially don't know what to inform in attributeName and navigationPropertyName
I have this part of code:
pane.navigate({
pageType: "entitylist",
entityName: "table2",
relationship:{
//attributeName String Name of the column used for relationship.
name: "table1table2",
//navigationPropertyName String Name of the navigation property for this relationship.
relationshipType:1,
roleType:2
}
})
Thank you!
I just realize that "relationship" property is made for entityrecord and not for entitylist.
Is there another way to retreive associated records for a selected item in a side pane without building a custom page with a gallery and a entityId?