Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1.             var notesSMSkarm = (from a in orgServiceContext.CreateQuery<Annotation>()
  2.                                 join p in orgServiceContext.CreateQuery<sm_picture>()
  3.                                 on a.ObjectId.Id equals p.Id
  4.                                 where p.sm_category == new Microsoft.Xrm.Sdk.OptionSetValue(100000009)  //SM: Skarm
  5.                                 && a.ObjectId != null
  6.                                 && (a.Subject != "Bild"
  7.                                 || a.NoteText != "Skärminstallation")
  8.                                 select new Annotation { Id = a.Id }).ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement