Hi. I am trying to setup a BPM to email users when a shipment is made. Below is the code that I have, however, I am getting a CS1061 error when I Check Syntax. If I remove the Plant table and join, the syntax runs fine.
The Plant table and Plant field are both legitimate tables/fields. Can anyone help me and tell me what I am doing wrong with the Plant table? Any and all help would be greatly appreciated!
Below is the code that I have:
var rows = (from a in Db.TFShipDtl
join b in Db.TFShipHead on
new {a.Company, a.PackNum} equals
new {b.Company, b.PackNum}
join c in Db.Plant on
new {b.Company, b.ToPlant} equals
new {c.Company, c.Plant}
join d in Db.ShipVia on
new {b.ShipViaCode} equals
new {d.ShipViaCode}
where
b.Shipped == true
select new {a.TFOrdNum, a.TFOrdLine,a.OurStockShippedQty, a.PartNum, a.LineDesc, b.TrackingNumber, b.ShipDate, b.PackNum, d.Description, d.TrackingNumPlaceHolder, d.TrackingURL} );
Thanks!
Laura