This is the rule { "rules_unpublish_on_contact_" : { "LABEL" : "Unpublish on contact ", "PLUGIN" : "reaction rule", "OWNER" : "rules", "REQUIRES" : [ "webform_rules", "rules" ], "ON" : { "webform_rules_submit" : [] }, "IF" : [ { "webform_has_id" : { "form_id" : [ "node:nid" ], "selected_webform" : { "value" : { "webform-client-form-23" : "webform-client-form-23" } } } } ], "DO" : [ { "component_rules_unpublish_content" : { "content_to_unpublish" : [ "node" ], "user" : [ "user" ] } } ] } } This is the Component ( this does works with another rule) { "rules_unpublish_content" : { "LABEL" : "Unpublish Content", "PLUGIN" : "rule set", "OWNER" : "rules", "REQUIRES" : [ "rules" ], "USES VARIABLES" : { "content_to_unpublish" : { "label" : "Content to unpublish ", "type" : "node" }, "user" : { "label" : "User", "type" : "user" } }, "RULES" : [ { "RULE" : { "IF" : [ { "node_is_published" : { "node" : [ "content-to-unpublish" ] } } ], "DO" : [ { "node_unpublish" : { "node" : [ "content-to-unpublish" ] } } ], "LABEL" : "Unpublish Content Rule" } }, { "RULE" : { "DO" : [ { "mail" : { "to" : [ "content-to-unpublish:author:mail" ], "subject" : "Ad [content-to-unpublish:title] Unpublished ", "message" : "Hi [content-to-unpublish:author],\r\n\r\nYour Ad [content-to-unpublish:title] has been unpublished this is due to one of the following reasons:\r\n\r\n1. You have received an email about the purchase of the item \r\n2. Your Ad has reached its expiry date of [content-to-unpublish:field-listing-dates:value2]\r\n\r\n\r\nIf your item did not sell you may relist it for its remaining time using this link [content-to-unpublish:edit-url]\r\n\r\nThanks \r\n[site:mail]", "language" : [ "" ] } } ], "LABEL" : "Email Author" } } ] } }