# DB template finalization for outbound and real-time event

**URL:** <https://forums.pega.com/t/db-template-finalization-for-outbound-and-real-time-event/3739>\
**Category:** General\
**Tags:** 8-7, outbound-marketing, decisioning-architect, decision-management, next-best-action, data-management\
**Created:** [January 4, 2023, 5:17am UTC](https://forums.pega.com/t/db-template-finalization-for-outbound-and-real-time-event/3739 "2023-01-04T05:17:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeepnaK1](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@DeepnaK1](https://forums.pega.com/u/DeepnaK1)\
**Post date:** [January 4, 2023, 5:17am UTC](https://forums.pega.com/t/db-template-finalization-for-outbound-and-real-time-event/3739/1 "2023-01-04T05:17:56Z")

</div>

We have a DB template for outbound set to be finalized at the end of campaign run. We would like to use the same template for finalizing data coming from real-time event trigger as well.

Can we configure both “finalization at the end of campaign run” and “schedule” on the same DB template?

---

<div class="post-metadata">

**Author:** ![AmyRohe](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@AmyRohe](https://forums.pega.com/u/AmyRohe)\
**Post date:** [January 11, 2023, 6:56pm UTC](https://forums.pega.com/t/db-template-finalization-for-outbound-and-real-time-event/3739/2 "2023-01-11T18:56:42Z")

</div>

Hi @DeepnaK1

Yes, you can enable both these options on the File Template. The finalization triggered by the outbound run will result in a file with results from that run specifically. The scheduled finalization will result in a separate file with results from the Real-Time Event triggered Actions.

More information on File Template finalization can be found in this section of the user guide: [Writing information to an external system](https://docs.pega.com/bundle/customer-decision-hub-88/page/customer-decision-hub/cdh-portal/write-information-external-system.html)

Thanks,

---

<div class="post-metadata">

**Author:** ![DeepnaK1](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@DeepnaK1](https://forums.pega.com/u/DeepnaK1)\
**Post date:** [January 18, 2023, 11:06am UTC](https://forums.pega.com/t/db-template-finalization-for-outbound-and-real-time-event/3739/3 "2023-01-18T11:06:46Z")

</div>

@ROHEA Thanks for your reply. We have configured it already and is working as expected.
