SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.… - 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

Your Answer


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.