In order to trigger custom workflow on click of manage publication, below are the steps:
- Go to/libs/cq/gui/content/common/managepublicationwizard/body/items/form/granite:data path and right click and then click on overlay node.
![vanegi_0-1599644719949.png vanegi_0-1599644719949.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/26696iEC34D3C9F43BF564/image-size/medium/is-moderation-mode/true?v=v2&px=400)
2. Overlay popup will appear, Check Match Node Type checkbox and click on OK.
![vanegi_1-1599644719945.png vanegi_1-1599644719945.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/26697i55362249837777F9/image-size/medium/is-moderation-mode/true?v=v2&px=400)
3. The structure will be created under apps, Now go to /apps/cq/gui/content/common/managepublicationwizard and add a property
sling:resourceSuperType and value of this property as /libs/cq/gui/content/common/managepublicationwizard
![vanegi_2-1599644719946.png vanegi_2-1599644719946.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/26695i56D3260A71869B7D/image-size/medium/is-moderation-mode/true?v=v2&px=400)
4. Now go to /apps/cq/gui/content/common/managepublicationwizard/body/items/form/granite:data path and add properties as
requestActivationWorkflow : /etc/workflow/models/custom_request_for_activation/jcr:content/model
requestDeactivationWorkflow : /etc/workflow/models/custom_request_for_deactivation/jcr:content/model
![vanegi_3-1599644719947.png vanegi_3-1599644719947.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/26698i20E6BA6EE499781B/image-size/medium/is-moderation-mode/true?v=v2&px=400)
Now on manage publication for publish and unpublish your custom workflow will be triggered.
Note :
- Even though your workflows will be in /conf still you need to add it in the same manner shown above.
- It does not work project specific. Changing the workflow will happen globally.
Thanks!!