# Declare rule to trigger custom activity

**URL:** <https://forums.pega.com/t/declare-rule-to-trigger-custom-activity/1451>\
**Category:** Blueprint and App Design\
**Tags:** low-code-app-development, communications-and-media, 8-5-1, system-architect, case-management\
**Created:** [June 2, 2021, 5:55am UTC](https://forums.pega.com/t/declare-rule-to-trigger-custom-activity/1451 "2021-06-02T05:55:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SouravD6325](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/souravd6325/32/6313_2.png) [@SouravD6325](https://forums.pega.com/u/SouravD6325)\
**Post date:** [June 2, 2021, 5:55am UTC](https://forums.pega.com/t/declare-rule-to-trigger-custom-activity/1451/1 "2021-06-02T05:55:24Z")

</div>

Hello everyone

My requirement is to create a declare trigger on Assign-.pxUrgencyAssign where I need a custom activity to run whenever there is a saved change to pxUrgencyAssign. But I don’t need the custom activity to run when only the instance is saved and the urgency is same as earlier. How do I acheive this ? Please help

Best Regards

---

<div class="post-metadata">

**Author:** ![KALINGAROUT](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@KALINGAROUT](https://forums.pega.com/u/KALINGAROUT)\
**Post date:** [June 2, 2021, 6:30am UTC](https://forums.pega.com/t/declare-rule-to-trigger-custom-activity/1451/2 "2021-06-02T06:30:55Z")

</div>

@SouravD6325

You can use the Saved and .. option in the declare trigger rule. You can add the pxUrgencyAssign as the property which you want to watch . Check the StatusElapsedCalculation declare trigger which is available OOTB for reference.

---

<div class="post-metadata">

**Author:** ![SouravD6325](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/souravd6325/32/6313_2.png) [@SouravD6325](https://forums.pega.com/u/SouravD6325)\
**Post date:** [June 2, 2021, 6:46am UTC](https://forums.pega.com/t/declare-rule-to-trigger-custom-activity/1451/3 "2021-06-02T06:46:13Z")

</div>

@KALINGAROUT

Thanks that was very helpful
