Optional integration scenario. This is a set-up on your Ed Controls
account, not an API call. It needs Custom Reports on your contract.
Ask Ed Controls support to switch it on; there is no endpoint to configure it
yourself.
- you want completed audits in a mailbox or an archive that reads mail, and you do not run a public endpoint for the callback of a PDF report;
- the report should use your own Custom Reports layout instead of the fixed API layout;
- the people informed on an audit should get the report the moment it is done.
How it works
- An audit is set to
completed— in the app, in the web app, or by your integration through the API. - Within a few minutes Ed Controls picks up the completed audit and renders it with the Custom Reports template that was chosen for your account.
- Every informed participant of the audit receives one email from
noreply@edcontrols.com(sender name EDControls) with the report as a PDF attachment.
What is set up for you
Ed Controls support sets these per account:
The default subject and mail text are in Dutch; ask for your own text in the
language your recipients read.
Drive it from your integration
The trigger is the audit itself, so an integration only has to create the audit, set who is informed, and complete it.1
Create the audit
Create it from a published template with
createAudit. An audit created through the API
carries only its responsible: the informed participants of the template
are not copied onto it.2
Add the informed participants
Read the audit, add the recipients to
participants.informed, and send the
whole document back:informed must be an array, and every entry an object with an email;
anything else is a 422. Informed participants can also be added in the
app before the audit is completed.3
Complete the audit
Fill in the answers and set
status to completed with
dates.completionDate, as in
Fill in an audit through the API.
Or let the inspector complete it in the app. The report mail follows a few
minutes later.Things to know
- One mail per recipient, once per audit. A completed audit is mailed only once. Reopening it and completing it again does not send a new report; for a fresh PDF, use the PDF report endpoint.
- Only recently completed audits. Audits completed more than five days before the delivery was switched on are not sent.
- No informed participants, no mail. The report is rendered, but nobody receives it. Use a shared address (an archive or a team mailbox) as an informed participant when the report must always land somewhere.
- Archived and deleted audits are skipped.
- Addresses are taken as they are on the audit. They are not checked against the project’s members, so an external archive address works.
- There is no delivery receipt through the API. To confirm that a report arrived, check the receiving mailbox.
