Relationship between PurchLine and SalesLine in Dyn365
If you need to find the relationship between Purch Line and Sales Line you can use the following links between the fields: SalesLine.InventTransId == PurchLine.InventRefTransIdSalesLine.InventRefId == PurchLine.PurchIdSalesLine.InventRefTransId == PurchLine.InventTransIdSalesLine.ItemId == PurchLine.ItemId These relationships are valid if the field: purchLine.ItemRefType = InventRefType::Sales