Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var notesSMSkarm = (from a in orgServiceContext.CreateQuery<Annotation>()
- join p in orgServiceContext.CreateQuery<sm_picture>()
- on a.ObjectId.Id equals p.Id
- where p.sm_category == new Microsoft.Xrm.Sdk.OptionSetValue(100000009) //SM: Skarm
- && a.ObjectId != null
- && (a.Subject != "Bild"
- || a.NoteText != "Skärminstallation")
- select new Annotation { Id = a.Id }).ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement