STEP 2 - Choose the Event that Triggers the Worker

Workers: Creating your First Worker - A Step By Step Example

AuthorFullName__c
Christopher Milazzo, Ravit Shapira, Sean pratt
articleNumber
000005917
FirstPublishedDate
2023-11-28T08:25:43Z
lastModifiedDate
2025-05-14
VersionNumber
19

We want to create a worker that checks an upload path before a file is uploaded. 

Start creating an Event Driven Worker by clicking on the corresponding button (see Figure 3)

User-added image 
Figure 3 - Start creating an “Event Driven Worker” from the empty state (left) or from a populated state (right).

We see that there is a worker type that is triggered before the file-upload action, named Before upload.  So we will create a worker of this type by clicking “Add” inside the card dedicated to the upload action:

User-added image

Figure 4 - Create a new Worker that reacts to an upload.