# onActivityCreated (deprecated)
URL: https://docs.awellhealth.com/docs/extensions/on-activity-created

> For the complete documentation index, see [llms.txt](https://docs.awellhealth.com/llms.txt).



> `onActivityCreated` was deprecated on 1 September 2024. Use
> [`onEvent`](/docs/extensions/on-event) instead.

This page is for anyone maintaining an older extension, or searching for the old function name.

## What onEvent covers [#what-onevent-covers]

`onEvent` covers what `onActivityCreated` did and more. It receives the same kind of payload, uses the
same `onComplete` and `onError` callbacks, and adds helpers.

Migrating usually means renaming the function and checking the payload shape against
[The onEvent function](/docs/extensions/on-event).

## Extensions still on the old function [#extensions-still-on-the-old-function]

Migrate them. There is no advantage to staying on a deprecated function.

Where `onEvent` doesn't cover something, email
[support@awellhealth.com](mailto:support@awellhealth.com) rather than working around it.
