02-18-06 03:49 AM
One way is to check StartDate property of the Posting object, which tells yo
u
when the page first became live (assuming that approving a page would publis
h
it..i.e. you don't have any custom work-flow). Another is to use the
Revisions method. The default method returns all revisions, whether they wer
e
caused by modifying the posting itself, or as a result of a change to a
shared Resource used by the posting. There are overloaded methods that you
can use to exclude Resources and only include revisions caused by approving
a
Posting, which should be enough to know whether a Posting was approved befor
e.
You can read more about it here
http://msdn.microsoft.com/library/d...g_Revisions.asp
I hope this helps!
"Søren Andersen" wrote:
> Hello world,
>
> In Global.asax I capture the CmsPosting_Approved in order to send
> notifications when postings in certain channels are approved.
>
> However, the notifications should only be sent when it's a new posting
> being approved - not when an existing posting is being re-approved
> after it's been edited.
>
> How do I make this distinction?
>
> Cheers,
> Soren
>
>
[ Post a follow-up to this message ]
|