# Send an event with start and endtime

**URL:** <https://community.dynatrace.com/t/send-an-event-with-start-and-endtime/42336>\
**Category:** Automations\
**Tags:** dynatrace-sdk, workflows, javascript\
**Created:** [October 27, 2023, 6:19pm UTC](https://community.dynatrace.com/t/send-an-event-with-start-and-endtime/42336 "2023-10-27T18:19:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen1\_Lee](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Stephen1\_Lee](https://community.dynatrace.com/u/Stephen1_Lee)\
**Post date:** [October 27, 2023, 6:19pm UTC](https://community.dynatrace.com/t/send-an-event-with-start-and-endtime/42336/1 "2023-10-27T18:19:57Z")

</div>

How can i use the javascript SDK in automation to send a start and end time&nbsp; event that can be extracted in the SRG?

input.

 ![Stephen1_Lee_0-1698430686065.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/b/db0629eda0fb130b85d18162134f521e0cd73df7.png)

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [October 30, 2023, 11:30am UTC](https://community.dynatrace.com/t/send-an-event-with-start-and-endtime/42336/2 "2023-10-30T11:30:44Z")

</div>

Hi,

I have not done such this automation, but I think you can find all the necessary information here: [https://www.dynatrace.com/support/doc/javascriptapi/modules/dtrum\_types.html](https://www.dynatrace.com/support/doc/javascriptapi/modules/dtrum_types.html)

Radek
