Skip to main content
Version: 1.24

Receipting with Your Custom Flows

Most organizations don't need this

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.

ActionWhat it does
Create Receipts for Recurring DonationsCreates the receipts of the recurring donations you pass, for a period.
Create Receipts for OpportunitiesCreates single or consolidated receipts, or giving summaries, for the opportunities you pass.
Create Receipts for PaymentsThe same for payments, when Receipt by is "Payment".
Create PDFs for ReceiptsCreates the PDFs of the receipts you pass.
Email ReceiptsEmails the receipts you pass, through Salesforce or Dryad Mailer.
Merge Multiple PDFs into a Single PDFMerges the PDFs of the receipts you pass into files for printing.
Set Receipts as EmailedTicks Email Sent on the receipts you pass, for receipts you sent another way.
Set Receipts as PrintedMarks the receipts you pass as printed.
Get Receipt SettingsReturns 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​

Pass only eligible records

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​

InputMeaning
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.
TypeLeave 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.

Large requests run in the background

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​

InputMeaning
Recurring Donations (required)The recurring donations to receipt.
Start Date, End DateThe 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​

InputMeaning
ReceiptsThe 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​

InputMeaning
ReceiptsThe receipts to email.
Email Template IdOptional. An email template to use instead of each receipt's own.
Enable LoggingOptional. True to track the send in an "Email Receipts" Batch Receipt Log.
Parent Batch Receipt Log IdOptional. 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​

SymptomCheck
The action isn't in Flow BuilderCheck its name in the table above. Other Dryad Receipting actions can't be used in your own flows.
Gifts got a second receiptThe flow passed gifts that were already receipted. Filter on Receipt Status before calling the action.
No receipt IDs were returnedThe 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.