I apologize my original response was incomplete. The new survey needs to be added to a folder, be it the root or a sub folder, in order to be visible in the application.
private void MoveSurveyToFolder(ResponseTemplate survey, int folderId)
{
if (folderId == 0)
{
FormFolder folder = FormFolder.GetRoot();
folder.Add(survey);
}
else
{
FormFolder folder = new FormFolder();
folder.Load(FolderID);
folder.Add(survey);
}
}
Where folderId is the id of the sub folder you would like to add the survey too.
|