Skip to main content

Forward the email

Stepforward-emailnotifyside effects

Forwards the email that started the run, with its attachments, to someone else. You can add a note above it.

At a glance​

PropertyValue
Step nameforward-email
ResourceClusterStep (lumen.ai/v1alpha1)
Palette group, categorynotify, messages
Credits1 credit each time it succeeds
Side effectsyes It changes something outside Lumen, so a retry asks first and a test shows what it would do instead of doing it.
Installation must providemail

Inputs​

PropertyValue
Needsemail
Producesnothing
Works onitem one document at a time

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See Documents and data.

Outputs​

No named outputs. Later nodes still see everything produced earlier on the path, and this step passes the documents on unchanged.

Settings​

Set under config: on the flow node. Text settings may contain {nodeId.field} placeholders.

SettingTypeDefaultDescription
torequiredstring-Forward tominLength 3
notestring-Note is written above the forwarded message.maxLength 4000

The full JSON Schema of these settings: forward-email.schema.json.

Example​

Pass a quote request to sales

config
note: Please prepare a quote for this customer.
to: sales@yourcompany.co.il

Use it in a flow​

A node that runs forward-email goes under spec.nodes of a Flow. Give it any id, and list the next node ids in next.

flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
name: my-email-forward
namespace: tenant-acme
spec:
classRef: {name: email-forward}
config: {}
---
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: forward-email-example
namespace: tenant-acme
spec:
displayName: "Forward the email"
triggers:
- id: start
ref: {name: email-arrives}
connectorRef: {name: my-email-forward}
next: [forward-email]
nodes:
- id: forward-email
stepRef: {name: forward-email}
config:
note: Please prepare a quote for this customer.
to: sales@yourcompany.co.il