# Set scheduled event dynamically

**URL:** <https://forum.serverless.com/t/set-scheduled-event-dynamically/2814>\
**Category:** Serverless Framework\
**Created:** [October 4, 2017, 4:34am UTC](https://forum.serverless.com/t/set-scheduled-event-dynamically/2814 "2017-10-04T04:34:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![TrentBartlem](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/trentbartlem/32/627_2.png) [@TrentBartlem](https://forum.serverless.com/u/TrentBartlem)\
**Post date:** [October 5, 2017, 1:25am UTC](https://forum.serverless.com/t/set-scheduled-event-dynamically/2814/2 "2017-10-05T01:25:25Z")

</div>

1. Store the trigger records in DynamoDB - multiple triggers means multiple records, each with a different execution time.
2. Enable Time To Live in DynamoDB and configure that table such that when the execution time is reached, the record will be deleted.
3. Create a lambda that listens to DynamoDB deletion events. When it detects that an event should be triggered, it does so, using the data sent from dynamo.

---

_[View the full topic](https://forum.serverless.com/t/set-scheduled-event-dynamically/2814)._
