Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a way to automatically approve Blogposts I created with a .Net Webrequest/REST? I can currently add posts to the Blogs list just fine, but I can't get them to be approved/be published automatically...

share|improve this question
    
I too am trying to do something like this. I get an error that the column _ModerationStatus is not valid on the item type. Did you ever find a way to do this? –  El Hombre Mar 11 at 18:10
    
@El Hombre postItem["_ModerationStatus"] = "0"; worked for me –  Saph Mar 14 at 7:25
add comment

1 Answer 1

Theoretically, you should be able to do this. The field you want to explore is _moderationstatus. Here someone has listed all the status values.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.