Inputs
Inputs are the values an automation needs when a run starts. Use clear labels and make a field required only when the automation cannot continue without it. Simple text, number, and yes-or-no values appear as manual fields in the test panel. Use JSON for nested objects, lists, or other structured input. When someone requests a published automation from the catalog, Flow uses its saved defaults for omitted inputs. Values the requester provides take precedence. Defaults must satisfy the input’s validation rules.Business justification for catalog requests
New automations ask for a business reason when someone requests them from the catalog. To make the reason optional, ask Flow to make catalog justification optional, then publish the revision. In source, the setting isrequireJustification: false at the top level of
defineAutomation. Set it to true to require a reason again.
The reason is part of the catalog request. Direct API runs accept the fields declared in
the automation’s input schema. Existing automations keep their original catalog behavior
when you publish an unrelated edit. Duplicating an automation carries its original default
forward. Creating one from raw source gives it the new default.
Test inputs
1
Open the automation.
2
Select Test. After you publish, select the options arrow beside Run, then choose Test.
3
Under Inputs, use Form or JSON.
4
Start with Simulated mode.
5
Test a valid example and the important missing or invalid values.
Approvals
Flow includes four standard approval procedures for automations in v1:
An approval can run before the automation starts or pause it at a specific step. Manager Approval
needs a manager email or directory manager ID in the requested-for person’s Flow profile. That
reference must resolve to one active organization user who is eligible to approve. A manager name
alone is not enough.
Directory Sync
can supply and update that relationship. Single sign-on (SSO) alone does not keep it synchronized. If Flow cannot
resolve the manager, the procedure cannot route the approval; it does not guess an approver or skip
the decision.
Check that the manager information is synced before using this procedure, or choose another
procedure that fits your policy.
Target Team Managers requires the target team to have at least one active manager.
Automation-Selected Approvers is available only at a step inside
the running automation. It requires a non-empty
approvers list of organization-user IDs or primary
email addresses and supports up to 250 potential approvers.
Select those approvers through trusted automation logic or organization-controlled data.
Do not map a requester-provided approver list directly to the procedure. Use your
organization’s policy to decide which access requires approval and who can approve.
For example, a group access automation can approve employee announcements access
automatically and require reviewers for confidential finance access. Map each access
type to a configured group, evaluate that exact group, and grant only the approved group.
Check that the employee receiving access matches the person the request is for before
requesting approval. This keeps self-approval rules tied to the person receiving access.
Deny unsupported groups. A requester must not be able to select announcements access
and substitute a confidential group.
The browser does not support managing custom approval procedures in v1. Organization administrators
can manage them through the public API.
Scheduled and event-triggered approvals
Scheduled and event-triggered automations run as a service account, which has no manager. They can pause during a run for approval from Target Team Managers, Organization Administrators, or Automation-Selected Approvers when those approvers match your policy. Target Team Managers asks managers of the team running the automation. Manager Approval asks the manager of the person the request is for. Scheduled and event-triggered automations can’t use Manager Approval or custom approval rules that ask for that person’s manager. Adding a person’s name or ID to automation inputs doesn’t make the approval request theirs. These triggers also can’t wait for approval before the automation starts. Open Readiness to review approval issues before publishing. Publishing or starting an automation doesn’t automatically make someone an approver. They must meet the approval rules, including any restrictions on approving their own requests. When the rules forbid approving your own request, the requesting service account can’t approve, even by acting for someone else. Running as a service account doesn’t give it permission to record a person’s approval decision. Approval of an automation run doesn’t replace approval of a person’s access request. Check that the person receiving access matches the person the request is for. When a person starts an automation, Manager Approval asks that person’s manager. Starting it for someone else requires permission to request it on their behalf.Add an approval
1
Tell Flow which standard procedure to use.
2
Tell Flow where the decision belongs.
3
Map any procedure input from the automation.
4
Save the revision.
5
In Simulated mode, test both approval and denial.
6
Publish the automation.
Do this only after both paths work and Validation scenario review is current for the revision.
Related topics
- Test and publish (Validation scenarios, draft testing, and publish)
- Run history and debugging