| Stefan Goßner [MSFT] 2007-01-26, 7:17 am |
| Hi Rich,
the basic script would look like this:
static private void CollectChannel(Channel channel)
{
foreach (Posting po in channel.Postings)
{
if (po.CanApprove)
{
po.Approve();
}
// second approval in case of moderator approval required
if (po.CanApprove)
{
po.Approve();
}
}
foreach (Channel ch in channel.Channels)
{
CollectChannel(ch);
}
}
Channel channel = ...start channel for the change...;
CollectChannel(channel,wXml);
Cheers,
Stefan
"Rich" <Rich@discussions.microsoft.com> wrote in message
news:8302CDCC-BDDC-49F9-B554-6AB125EC93C7@microsoft.com...[vbcol=seagreen]
> Stefan -
>
> Thanks. I will look into that. Is there a location or source that I can
> look at to get an idea of what methods to invoke. I am fairly new to MCMS
> and have not really had a chance to delve deep into the internals yet.
>
> Thanks again
> Rich
>
> "Stefan Goßner [MSFT]" wrote:
>
|