Skip to content

External user task

An external user task brings customers, suppliers or applicants into the process without a Pantarey account: they receive a link by email or Teams to a page in the company's own design, review a PDF, fill in a form or click Approve, and the process continues with their answer. In the Designer it is created from a task via the wrench → External User Task.

From practice

Sension GmbH delivers medical findings this way: instead of an attachment, a time-limited link to a page in the Sension design. Read the success story

Setting up with the wizard

Wizard Configure external task at the step Task type with the cards Approval, PDF approval, Form input and Custom
"Configure external task": Naming, Task type, Channel, Details.

Set up task now leads through the configuration in four steps:

Step Fields
Naming Display name, Description (internal), Business label
Task type Approval, PDF approval, Form input or Custom; sets a matching task page and the actions
Channel Internal email (only to people with a Pantarey account), Email (SMTP), Office 365, Microsoft Teams
Details Recipient, for SMTP and Office 365 also CC and BCC, Subject, the credentials of the channel

Afterwards, quick actions show everything that can be changed: Basic settings, Change delivery channel, Design task page (HTML), Design confirmation page after completion, Design success page after action, Design expired page, Design cancelled page, Customise notification email, Configure input/output data and variables, Live data SQL query, Execution mode and the time limit.

Data in the task

The task receives its input like every activity, default { "data": $ }. The recommendation remains to keep the business content under data; delivery data goes on the root:

{
  "data": $,
  "recipient": kunde.email,
  "senderAddress": "noreply@example.com",
  "rechnungPdf": rechnung_pdf
}

In the delivery fields (recipient, CC, BCC, subject, sender, credentials) placeholders such as $(recipient) or $(kunde.email) apply; several addresses are separated by commas, lists are taken over as they are ($(cc_liste)). An unresolvable placeholder, an empty recipient or a value without @ make the step fail with an English message such as "Field "To" contains an unresolved placeholder".

The five pages

Page When
Task page the actual page with information, documents, form and actions
Confirmation page directly after submitting
Success page when the link is opened again after completion
Expired page after the time limit has run out
Cancelled page when the task was cancelled in the Process Explorer

Each page is HTML with inline CSS, edited in the HTML editor with preview and AI help; a rendered page may be up to 200 KB in size. External stylesheets and scripts are not loaded.

Placeholders

Layer Syntax Purpose
Handlebars {{kundenname}}, {{rechnung.betrag}}, {{{html}}} values from the input, with all Handlebars helpers such as {{currency_eur betrag}}, {{#greaterThan betrag 5000}}…{{/greaterThan}}, {{currentDate "de-DE" "Europe/Berlin"}}
System %%EXTERNAL_URL%% link to the task page, for the notification email
System %%FILE:rechnungPdf%%, %%FILE:auftrag.anlage%% secure URL, valid for one hour, to a file from the input, for <iframe>, <img> or a download link
Action <button data-action="approve">Genehmigen</button> the action that goes back to the process; names can be chosen freely
Upload <upload-widget name="belege" multiple accept="pdf" label="Belege" hint="PDF bis 10 MB"></upload-widget> file upload by the external person; accept is all, pdf or images
Form ordinary <input name="…">, <select>, <textarea> entries end up under formData

Live data

Live data SQL query stores a SELECT query that runs with fresh data each time the page is opened, for example the current delivery status. The page reads the result via a data attribute; details are shown in the dialog. The query runs with the permissions of the account, so only data the external person is allowed to see should be queried.

Execution mode and time limit

Setting Meaning
Synchronous (default) the process waits; the result { "selectedAction": "approve", "formData": { … } } is stored under the result path, plus $$context.completedBy = "external"
Asynchronous the step is done once the notification has been sent, the process continues immediately; the answer does not flow back, the task remains visible in the management view
Time limit as with the user task: default 30 days, after that the link shows the expired page; Cancel (error) or Continue

A delivery error, such as wrong SMTP data, makes the step fail and can be caught with an error boundary event.

Security

The link contains a random token; whoever has it can answer the task once. After that the link shows only the success page. Files are retrievable via %%FILE%% for one hour per call and only if they are in the input of the task. There are no reminders, deadline extensions or a login; for sensitive cases, choose a short deadline and make sure the link is not forwarded.

Management

Running external tasks are listed in the Process Explorer per process in the External tasks tab: status, recipient, task, action, business label, created, expires, views. There the link can be copied, the notification resent, the task cancelled, and the page templates of a running task brought up to the state of the current process, individually or in bulk. Details under External tasks.

Complete example

Task page of a PDF approval with amount, warning notice, embedded PDF and two actions:

<!DOCTYPE html>
<html lang="de">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Freigabe angefordert</title></head>
<body style="font-family: -apple-system, 'Segoe UI', sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; background: #f8fafc;">
  <div style="background: white; border-radius: 12px; padding: 32px;">
    <h1 style="color: #1e293b;">Freigabe angefordert</h1>
    <p style="color: #64748b;">Erstellt am {{currentDate "de-DE" "Europe/Berlin"}}</p>
    <p><strong>Antragsteller:</strong> {{data.antragsteller}}</p>
    <p><strong>Betrag:</strong> {{currency_eur data.betrag}}</p>
    {{#greaterThan data.betrag 5000}}
    <p style="background: #fef3c7; padding: 12px;">Beträge über 5.000 € benötigen die Freigabe der Geschäftsleitung.</p>
    {{/greaterThan}}
    <iframe src="%%FILE:rechnungPdf%%" width="100%" height="500px" style="border: 1px solid #e2e8f0;"></iframe>
    <div style="display: flex; gap: 12px; margin-top: 32px;">
      <button data-action="approve" style="background: #22c55e; color: white; padding: 14px 32px; border: none; border-radius: 8px;">Genehmigen</button>
      <button data-action="reject" style="background: #ef4444; color: white; padding: 14px 32px; border: none; border-radius: 8px;">Ablehnen</button>
    </div>
  </div>
</body>
</html>

The gateway behind it checks $(freigabe.selectedAction) === 'approve'.

Frequently asked questions

The email does not arrive.

The Internal email channel reaches only people with a Pantarey account. For external people, set up SMTP, Office 365 or Teams; credentials as secrets.

The link should be valid for longer than 30 days.

Set the time limit to Duration with the desired value. Running tasks cannot be extended; instead use Resend in the Explorer before expiry or create the task anew.

Can the page be sent to a Pantarey user?

Yes, but then the user task is usually the better choice: with form, task list and traceability of who clicked.

Next step

Time, errors and signals: waiting, catching errors, notifying dashboards.