Receipting with Your Custom Flows
Batch Receipts, the list view buttons, the New Receipt buttons and the scheduled job cover the usual receipting work. Use these actions only if you want to build your own receipting automation on top of Dryad Receipting. They run the same underlying logic as the app's own screens.
Dryad Receipting adds actions to Flow Builder, so your own flows can create receipts, create their PDFs, email them and read Receipt Settings.
This article lists the actions you can use, what each one needs, and the rules to follow so your flow receipts only what it should.
Use your own flow when you have a process those don't cover, for example receipting gifts as soon as an integration creates them.
Finding the Actions
In Flow Builder, add an Action element and search for the action's name, or browse the Receipt category. Only the actions below are available to your flows.
The package contains other actions, such as the ones behind the Batch Receipts screens, but they can only be used by the package's own flows.
| Action | What it does |
|---|---|
| Create Receipts for Recurring Donations | Creates the receipts of the recurring donations you pass, for a period. |
| Create Receipts for Opportunities | Creates single or consolidated receipts, or giving summaries, for the opportunities you pass. |
| Create Receipts for Payments | The same for payments, when Receipt by is "Payment". |
| Create PDFs for Receipts | Creates the PDFs of the receipts you pass. |
| Email Receipts | Emails the receipts you pass, through Salesforce or Dryad Mailer. |
| Merge Multiple PDFs into a Single PDF | Merges the PDFs of the receipts you pass into files for printing. |
| Set Receipts as Emailed | Ticks Email Sent on the receipts you pass, for receipts you sent another way. |
| Set Receipts as Printed | Marks the receipts you pass as printed. |
| Get Receipt Settings | Returns your Receipt Settings, so a flow can use values such as the Minimum Receipt Amount. |
Two other actions, "Get Permission Set Names (DEPRECATED)", are kept only for older flows. Don't use them.
Before You Start
Create Receipts for Opportunities receipts every opportunity you pass, even one that's already receipted.
Select the records in your flow first, using the same rules as Batch Receipts:
- single receipts: Receipt Status = "Eligible";
- consolidated receipts: Receipt Status = "Eligible for Consolidated";
- recurring donations: the recurring donation's Receipt Status is "Eligible" or "Receipted".
See Receipt Eligibility. A flow that passes gifts that are already receipted creates a second receipt for them.
Run the Flow as a User with the Right Access
The actions run with the permissions of the user the flow runs as. That user needs the Receipt User or Receipt Admin permission set to create and email receipts, or Receipt User Lite to create receipts and PDFs only (see Permissions).
Emailing, and marking receipts as emailed or printed, need edit access to receipts, which Receipt User Lite doesn't give.
Respect the Run Limits
Creating receipts counts towards the Daily Receipt Limit, and emailing through Salesforce towards the Daily Email Limit. See Large Volumes and Limits.
Creating Receipts
Create Receipts for Opportunities
| Input | Meaning |
|---|---|
| Opportunities (required) | The opportunities to receipt. Only their IDs are used; the action reads the rest itself. |
| Consolidate Receipts? (required) | False for one receipt per opportunity. True for one consolidated receipt per donor. |
| Type | Leave blank for receipts. Set it to "Giving Summary" to create giving summaries instead (see Giving Summaries). |
| Include Voided? | Not needed for normal use. |
It returns the IDs of the receipts it created straight away.
Above the Batch Threshold, single receipts are created by a background job and no receipt IDs are returned.
That job is tracked in a "Create Receipts" Batch Receipt Log. Up to that number, they are created in the same transaction.
Consolidated receipts are always created straight away. Either way, their PDFs are then created in the background.
A gift that is already on a consolidated receipt is reissued with the other gifts of that receipt, as with the New Receipt button (see Voiding and Reissuing).
Create Receipts for Payments
The same inputs, with Payments instead of Opportunities. There is no Include Voided? input. Use it only when Receipt by is "Payment".
When the request has more payments than the Batch Threshold, single and consolidated receipts are both created by a background job. It returns nothing.
Create Receipts for Recurring Donations
| Input | Meaning |
|---|---|
| Recurring Donations (required) | The recurring donations to receipt. |
| Start Date, End Date | The period whose installments the receipt covers. |
| Include Voided? | Not needed for normal use. |
The receipts are always created by a background job, in groups of Receipt Batch Size recurring donations, so the action returns nothing. Follow the job in the Batch Receipt Logs tab.
Working with Existing Receipts
Create PDFs for Receipts
| Input | Meaning |
|---|---|
| Receipts | The receipts whose PDFs to create. |
| Is Batch? | True to create the PDFs in a background job. Use it for more than a few receipts. |
Each PDF uses the receipt's own template. The create actions already create PDFs, so you only need this to create a PDF again, for example after changing a template.
Email Receipts
| Input | Meaning |
|---|---|
| Receipts | The receipts to email. |
| Email Template Id | Optional. An email template to use instead of each receipt's own. |
| Enable Logging | Optional. True to track the send in an "Email Receipts" Batch Receipt Log. |
| Parent Batch Receipt Log Id | Optional. Links the log to an earlier run's "Create Receipts" log. |
It uses the service set in Send Emails Using. Only pass receipts that have a PDF and an email address: their Delivery Status is "To be Emailed" or "To be Emailed & Printed".
Merge Multiple PDFs into a Single PDF
Pass the receipts to merge. A background job combines their PDFs through Dryad's merge service, in files of PDF Merge Batch Size receipts, and is tracked in a "Merge PDFs" Batch Receipt Log. See Actions from Batch Receipts.
Set Receipts as Emailed and Set Receipts as Printed
Pass the receipts. They are marked as emailed or as printed, and the action returns how many were updated. Use them when your process sends or prints receipts outside Dryad Receipting.
Reading Settings
Get Receipt Settings takes no input and returns your settings, such as Minimum Receipt Amount, Receipt by (as "Enable Receipt By Payment", "Yes" or "No"), Send Emails Using, the daily limits and counts, Batch Threshold and the charity details.
A blank Yes/No setting is returned as "No".
Troubleshooting
| Symptom | Check |
|---|---|
| The action isn't in Flow Builder | Check its name in the table above. Other Dryad Receipting actions can't be used in your own flows. |
| Gifts got a second receipt | The flow passed gifts that were already receipted. Filter on Receipt Status before calling the action. |
| No receipt IDs were returned | The request was larger than the Batch Threshold, so the receipts are being created in the background. Follow the "Create Receipts" Batch Receipt Log. |
| "You don't have access to fields used in the receipt field mapping" | The user the flow runs as can't read a field in your receipt field mapping. See Permissions. |
| Emailing fails with "Insufficient privileges" | The user the flow runs as doesn't have edit access to the receipts. |