Example: Notification workflow

Example workflow that sends the same message to the person who is currently logged in.

The workflow diagram in the following figure is an example of a workflow that always sends the same message to the person who is currently logged in.
Figure 1. Example of a notification sending workflow
The image is explained in the text.

The first task creates the Notification record, sets the message content and makes the RefObject field refer to the record that was used to launch the workflow.

The second task sets the recipient of the notification.

The third task triggers the Notify action on the Notification record.