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 am required to remove Workflow associations on a content type and from all the child content types deriving from this, as well as the list content types, deriving from the derived.
ct - A Site Content Type
wfAssoc - A workflow association with ct

    ct.WorkflowAssociations.Remove(wfAssoc);
    ct.UpdateWorkflowAssociationsOnChildren(false, true, true,true);

But the above is removing the association only with the parent, and not affecting any children or list content types. Help please? urgent.

share|improve this question
add comment

1 Answer

Recently I had to delete association too and here is a code I have used:

Found this post and it works well for me

Hope it helps someone,

Andrew

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.