I am working in a provider hosted app in O365 SP Online and I want to create a SP list view programatically.

How do I do that?


But the tricky part I have is apart from fields, I want to set up target audience as well

Edit:2 If I use this custom List view in a List view web part then how will I be able to set target audience for the same. This is the similar thread which explains how to do it using powershell. But I need some reference in C#

  • Have you tried something? There are plenty of ressources answering that question - c-sharpcorner.com/blogs/… for example. – Mx. Jul 4 '17 at 7:16
  • I have updated my question, please refer. Anyway why a negative score on my question, I m still not able to figure it out! If this an invalid one or something – DvG Jul 4 '17 at 7:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.