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

I figured how to block inappropriate words from sharepoint blog posts through workflow. I want to do the same when those keywords appear in posts title or comments.

share|improve this question
    
G-Man, can you share the source where you find the workflow to block inappropriate words in Blog Posts? Why can't you use same workflow for Comments list? –  Arsalan Adam Khatri Nov 5 '12 at 15:23
add comment

1 Answer

You could do this in ItemUpdating/ItemUpdated, then you could have it run for all lists from the same event receiver.

It would only be available for approval once the filtering is done by ItemUpdated, ItemUpdating would set it as a draft.

Have a hidden list of banned words, the words are stored in regex replacement text for simplicity, then run the list against the values, once done they can be set to be allowed for approval by using a flag column or automatically approved and published.

share|improve this answer
    
That's the workflow which is confusing. I did that for post's body. it works fine. But I don't know how to do it for comments. Its not working. social.technet.microsoft.com/Forums/en-US/… - I used this answer to implement for posts body. but can you tell me for comments? –  Gravity M Nov 5 '12 at 16:03
    
It's the comments list, it's a separate list. Get SharePoint manager from codeplex and browse your site to get a better understanding. You can also see where the workflow is attached and how, the column names types, even attach etc. –  Hugh Wood Nov 5 '12 at 16:07
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.