Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SharePoint > SharePoint Development
SharePoint Development Programming and development for SharePoint Portal Server and Windows SharePoint Services
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SharePoint Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 26th, 2009, 01:16 PM
Registered User
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating a discussion topic prgramatically using SPUtility.CreateNewDiscussion()


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?


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating discussion forum swarnendude Java GUI 1 December 13th, 2007 10:09 AM
c discussion forum giri_nitr C++ Programming 0 April 30th, 2007 05:44 AM
Is this topic a professional topic?? mega ASP.NET 1.0 and 1.1 Professional 0 December 3rd, 2004 09:37 PM
How to add a "new topic" in a discussion group Cinderella Classic ASP Basics 2 September 22nd, 2004 03:07 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.