Access record after creation

How can I access or get the created record inside the afterCreate() hook? I need to do stuff after the creation but need the record id for it.

The handleRecordCreation() doesn't really fit, because I do want to let that handling automatically (with relations etc.)

Thank you!
Was this page helpful?