|
Home > Archive > Microsoft Content Management Server > March 2004 > How to Copy Last Approved Posting Version
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to Copy Last Approved Posting Version
|
|
|
| Hi,
I want to use the CopyTo-Method of the Posting Object to
Copy the last APPROVED version of a Posting to another
channel.
Reading the API-chm I found, that Revisions gives me back
a PostingCollection, where the most recent the approved
one is (if existent).
If I try the following code:
Dim postCL As PostingCollection = Posting.Revisions()
Dim postCopy As Posting = postCL.Item(0).CopyTo(chToSync)
I get a read-only exception.
Questions:
1) Is there an other (simple) way to do this?
2) or do I have to parse the original posting in Published
Mode, get all the approved placeholder content, change to
update-mode to create a new posting with the same template
and insert alle the approved contents?
Help very appriciated
thanx in advance
jens
| |
|
|
|
| Hi Stefano,
I don't want to do this with every approve-event, but only
on demand for many postings at one time.
help appriciated
jens
>-----Original Message-----
>Hi Jens,
>
>you could use "publishing events", and exactly the
approved event.
>Here the reference:
>http://msdn.microsoft.com/library/en-
us/sitedevl/htm/cms_sd_ext_workflow_ycyt.asp?frame=true
>
>HTH
>Bye!
>
>Stefano
>
>
>.
>
| |
| Stefan [MSFT] 2004-03-31, 12:44 pm |
| Hi Jens,
I'm not sure if this will work.
Copying a posting always copies the whole posting/page object. And all
revisions are part of the page object.
What you are looking for is to copy only a part of a page object.
I don't think this will work - but I haven't tried.
I think you will have to copy the items manually.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jens" <anonymous@discussions.microsoft.com> wrote in message
news:1649501c4173c$140699b0$a301280a@phx
.gbl...[color=darkred]
> Hi Stefano,
>
> I don't want to do this with every approve-event, but only
> on demand for many postings at one time.
>
> help appriciated
> jens
>
> approved event.
> us/sitedevl/htm/cms_sd_ext_workflow_ycyt.asp?frame=true
|
|
|
|
|