Search.../

onPolicyCreated( )

Developer Preview

Syntax

function onPolicyCreated(event: PolicyCreated): void

onPolicyCreated Parameters

NAME
TYPE
DESCRIPTION
event
Optional
PolicyCreated

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onPolicyCreated example

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