Microsoft Content Management Server - Programmatically Unlocking postings?

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > February 2004 > Programmatically Unlocking postings?





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 Programmatically Unlocking postings?
Morten Petterĝe

2004-02-07, 4:36 am

Hi,

I am implementing a couple of workflow extensions. One of these extensions
creates copies of a posting in other channels upon approval.

The problem I have is that the copied postings (that are supposed to be
translated by others) are locked by the system user I used when
programmatically copying the posting.

I have tried newPosting.ReleaseOwnership, with both true and false as
argument.


Any tips on how to unlock the post by code?



Thanks,

Morten


Stefan [MSFT]

2004-02-07, 1:36 pm

Hi Morten,

ReleaseOwnership will do the job.
Don't forget to commit the change.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Morten Petterĝe" <morten@imano.nospam (remove the spam, leave the no)>
wrote in message news:#Ga6j5Z7DHA.1632@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I am implementing a couple of workflow extensions. One of these extensions
> creates copies of a posting in other channels upon approval.
>
> The problem I have is that the copied postings (that are supposed to be
> translated by others) are locked by the system user I used when
> programmatically copying the posting.
>
> I have tried newPosting.ReleaseOwnership, with both true and false as
> argument.
>
>
> Any tips on how to unlock the post by code?
>
>
>
> Thanks,
>
> Morten
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com