# Event daemon trigger only once - upon Version Creation?

**URL:** <https://community.shotgridsoftware.com/t/event-daemon-trigger-only-once-upon-version-creation/14810>\
**Category:** Flow Production Tracking\
**Tags:** python, fptr\
**Created:** [February 23, 2022, 11:00pm UTC](https://community.shotgridsoftware.com/t/event-daemon-trigger-only-once-upon-version-creation/14810 "2022-02-23T23:00:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![James.Choi](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@James.Choi](https://community.shotgridsoftware.com/u/James.Choi)\
**Post date:** [February 23, 2022, 11:00pm UTC](https://community.shotgridsoftware.com/t/event-daemon-trigger-only-once-upon-version-creation/14810/1 "2022-02-23T23:00:30Z")

</div>

Hi.

I’m trying to make an Event Daemon so that upon a Version creation, it changes the ‘Status’ field’s value to ‘reference’, which I was able to do using ‘sg.update(…)’.

BUT, I want this change to to the ‘Status’ field to happen only once upon creation of that Version and NEVER AGAIN for that particular Version.

Is there a way to do this? If so, what’s the code to make that happen?

Some help would be appreciated.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [February 24, 2022, 8:12am UTC](https://community.shotgridsoftware.com/t/event-daemon-trigger-only-once-upon-version-creation/14810/2 "2022-02-24T08:12:00Z")

</div>

You should [read through the documentation](https://github.com/shotgunsoftware/shotgunEvents/wiki/Technical_Overview#event-types). You need the event type “Shotgun\_Version\_New”, which only fires when the version is created.  
If you do not listen to update events, then nothing will happen.

---

<div class="post-metadata">

**Author:** ![Halil](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/halil/32/4697_2.png) [@Halil](https://community.shotgridsoftware.com/u/Halil)\
**Post date:** [March 1, 2022, 2:57am UTC](https://community.shotgridsoftware.com/t/event-daemon-trigger-only-once-upon-version-creation/14810/3 "2022-03-01T02:57:03Z")

</div>

Conversely, if you have other `Shotgun_EntityType_Change` type events running, and you do not want them to run when the changes are happening at creation time of a new entity, each change `EventLogEntry` will contain the following in the metadata: `in_create: True` which can be used when filtering events on the plugins.

Also if you want _every_ `Version` to be set this status initially it may be worth simply updating the default value for the status field settings via the web UI.
