Sharepoint : How to set content approval status programatically
There are business scenarios when we need to programmatically set content pusblishing status of an Item. Examples would be the custom workflow for publishing or content approval. Following simple line of code can be used to set approval status.
item.ModerationInformation.Status = SPModerationStatusType.Approved;
item.Update();
All i can say is simple
ReplyDeleteThanks
thanx a lot Danish
ReplyDeleteKeep it up
Cheers
Ravi