Creating a discussion topic prgramatically using SPUtility.CreateNewDiscussion()
Hi
I'm trying to create a new discussion topic programatically.
I can successfully create the discussion topic using the SPUtility.CreateNewDiscussion() method.
However, I can't set the body of the discussion.
I've tried newPost[SpBuiltInFieldId.Body] = "body of topic";
Then I call the update method on newPost. (newPost is the list item returned by SPUtility.CreateNewDiscussion())
When the new discussion topic is viewed, the body is blank.
Has anyone else encountered this issue or found a solution?
Thanks,
Paul
|