views:

807

answers:

1

how do i get a list of user that have completed or not completed or not responded to a survey.

so i have a survey, lets say "survey A". in this survey i have a list of people or groups that must fill the survey. sharepoint already gives us a list of respondents, but i want to make a list of people that have not responded or not completed the survey.

i'm using c#, thanks..

+2  A: 

Assuming that you survey is marked as non-annonymous, and that people can't answer the survey more than once, you can do the following:

  1. Take the list of people that MUST fill the survey.
  2. Iterate over the items in the survey (each item is a response from a single person).
  3. Remove the person that created that item from the lsit of people from section 1. (SharePoint survey's keep the person that answered to the survey as the "Creator"/"Author" property of the item)

The result will be the list of people that MUST answer the survey, but haven't done so yet.

SaguiItay