# Generate notification content based on process data

**URL:** <https://discuss.workflowgen.com/t/generate-notification-content-based-on-process-data/789>\
**Category:** General WorkflowGen Discussion\
**Created:** [June 8, 2017, 7:42pm UTC](https://discuss.workflowgen.com/t/generate-notification-content-based-on-process-data/789 "2017-06-08T19:42:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![schaubal](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@schaubal](https://discuss.workflowgen.com/u/schaubal)\
**Post date:** [June 8, 2017, 7:42pm UTC](https://discuss.workflowgen.com/t/generate-notification-content-based-on-process-data/789/1 "2017-06-08T19:42:07Z")

</div>

Is there a way to control content of notification based on value of process data. e  
x. if a Process data value is YES then I want a certain section/para in the notification to appear vs when it is NO

---

<div class="post-metadata">

**Author:** ![jianan.hsu](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/jianan.hsu/32/411_2.png) [@jianan.hsu](https://discuss.workflowgen.com/u/jianan.hsu)\
**Post date:** [June 8, 2017, 8:21pm UTC](https://discuss.workflowgen.com/t/generate-notification-content-based-on-process-data/789/2 "2017-06-08T20:21:31Z")

</div>

Hi,

As a standard feature, it is not possible because the content of notification is based on a static template file (either built-in templates or the file value of a FILE process data) when used in the notification tab of an action.

If you want to send dynamically generated notification content then you might have to create a custom SDK action that generates the notification content based on your business logic with your process data as IN parameter.

Best Regards,

Jian

---

<div class="post-metadata">

**Author:** ![LarryL](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/larryl/32/81_2.png) [@LarryL](https://discuss.workflowgen.com/u/LarryL)\
**Post date:** [June 12, 2017, 8:00pm UTC](https://discuss.workflowgen.com/t/generate-notification-content-based-on-process-data/789/3 "2017-06-12T20:00:08Z")

</div>

This may be simplistic but couldn’t you just create two different email templates and two notifications? One notification could be based on a YES response and the other a NO response.

---

<div class="post-metadata">

**Author:** ![jianan.hsu](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/jianan.hsu/32/411_2.png) [@jianan.hsu](https://discuss.workflowgen.com/u/jianan.hsu)\
**Post date:** [June 12, 2017, 8:15pm UTC](https://discuss.workflowgen.com/t/generate-notification-content-based-on-process-data/789/4 "2017-06-12T20:15:38Z")

</div>

Actually, you can use the value of a macro or process data to populate part of the content of a notification.

So my original comment about static notification content is not entirely true. it’s just that you cannot run business rules to generate the content of a notification using standard features.

Combining your solution above and populating the content with process data value offers a better control of the notification content output.
