Search.../

onBadgeCreated( )

Developer Preview

Triggered when a badge is created.

Syntax

function wixBadges_onBadgeCreated(event: BadgeCreated): void

onBadgeCreated Parameters

NAME
TYPE
DESCRIPTION
event
Optional
BadgeCreated

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onBadgeCreated example

Copy Code
1
2 export function wixBadges_onBadgeCreated(event) {
3 const eventId = event.metadata.id
4 const entityId = event.entity._id;
5 }
6
7