Integrations
Field Mapping

Field Mapping

Field mapping lets you use your Spektrix custom attributes in PatronSend. You can fill extra receipt fields from them, use them to decide how a donation is receipted, and turn them into variables for your messages and templates.

Go to Settings > Spektrix > Field Mapping. The page has four cards:

  1. Discovered Spektrix Attributes: the attributes PatronSend has found in your Spektrix data.
  2. Custom Attribute Mappings: which attribute fills each extra receipt field.
  3. Receipt Behavior: attributes that change how matching donations are receipted.
  4. Custom Variables: attributes you can use as variables in messages, letters, emails and custom PDF templates.

Standard fields such as the donor's name, address, gift amount and gift date come from Spektrix automatically. See Standard Field Mappings.

Custom field mapping requires the Standard plan. On a plan without it, the page shows an upgrade notice, you can't change any mappings, and any mappings you already have are paused: they aren't applied when receipts are created.

Discovered Spektrix Attributes

This card lists every custom attribute PatronSend has found, grouped into Customer Attributes, Donation Attributes and Membership Attributes. These are the options in every attribute picker further down the page.

PatronSend records attributes automatically as donations sync. To check now, click Sync attributes. PatronSend reads your recent Spektrix orders and memberships and adds any attributes it finds.

⚠️

Spektrix only shares an attribute with PatronSend when This attribute is visible in your API integrations is checked on the attribute in Spektrix. If an attribute is missing, check that setting first.

Membership Attributes

When a donation is linked to a Spektrix membership, the membership's own custom attributes appear under Membership Attributes, named membership_attribute_.... You can pick them anywhere on this page.

They are most useful for the advantage description: describing the benefit a member received (for example, event access or a member gift) without typing it into every receipt.

The value is read from the membership each time a donation syncs, not saved from when you first mapped it. If you change the value in Spektrix, the next receipt for that membership uses the new value.

Using an Attribute That Isn't Listed Yet

Every attribute picker has a Use a custom path… option at the bottom. Choose it to type an attribute name yourself, such as attribute_MI. Click Cancel to go back to the list.

Custom Attribute Mappings

This card is a fixed list of receipt fields. Each one has a Spektrix Attribute picker. Pick the attribute that holds the value, or leave it on Not mapped. Click Save Mappings when you're done.

Receipt FieldWhat it fills
Middle InitialThe donor's middle initial. Usually a customer attribute such as attribute_MI.
Business NameThe business name for a corporate donor. Usually a customer attribute.
Advantage AmountThe value of any benefit the donor received. Often set with a fund rule for events instead.
Advantage DescriptionA description of that benefit, such as "Dinner and entertainment".
Gift DescriptionA description of property given, such as "100 shares of ACME Corp". A value here also marks the gift as non-cash.
Non-Cash Gift TypeMarks a donation as a non-cash gift when its attribute matches one of your values. See below.
Letter SalutationThe donor's preferred salutation for letters, such as "Lisa and Kevin". The attribute's text is used as it is.

The advantage fields use your market's name for them: Goods/Services Value and Goods/Services Description in the United States, Fair Market Value and Benefit Description in Australia.

When an attribute is blank on an order or customer, the field is left empty, as though it weren't mapped.

Non-Cash Gift Type

Spektrix organizations record how a gift was made in their own words, for example a PaymentType attribute holding "Securities", "Gift In Kind" or "Cheque". So instead of expecting a fixed "cash" or "non-cash" value, you tell PatronSend which of your values mean non-cash:

  1. Pick the attribute.
  2. Choose its Type (see Field types and trigger values).
  3. For a text or dropdown attribute, type each value that means non-cash and press Enter.

Donations that don't match stay cash gifts. Leave the attribute unset to treat every gift as cash.

Fund Rules Take Priority

A matching fund rule overrides these mappings. If a fund rule sets an advantage amount or a gift type, that value is used even when the mapped attribute holds something else.

Receipt Behavior

This card uses your attributes to change how matching donations are receipted. Each row has a Spektrix Attribute picker and, once you pick one, a Configuration column with the field type and trigger values. Click Save Settings when you're done.

BehaviorWhat happens when the attribute matches
Do Not ReceiptThe order still syncs, but no donation in it gets a receipt.
Acknowledge OnlyThe order's donations get an acknowledgment letter instead of a tax receipt.
Patron Language: EnglishThe donor is marked as preferring English receipts.
Patron Language: FrenchThe donor is marked as preferring French receipts.
Prefers Mailed ReceiptThe donor's receipts are still issued as usual, but an auto-issued receipt isn't emailed. It waits in Awaiting Mail so your team can mail it.

In the United States, Do Not Receipt is labelled Do Not Acknowledge and Acknowledge Only is labelled Thank You Letter Only. They work the same way.

The Patron Language rows only appear for Canadian organizations with bilingual receipts. A donor's language picks their row of your receipt language settings. See Bilingual Receipts.

More Than One Attribute

Do Not Receipt and Acknowledge Only can each watch several attributes. Click Add another attribute under the row to add one, and click the Ă— next to an attribute to remove it. A donation is flagged when any of the attributes matches.

Each Acknowledge Only attribute can also choose a Letter template. Letters caused by that attribute use it. Leave it on Organization default to use your default letter template.

Which Behavior Wins

  • Do Not Receipt beats Acknowledge Only. If both match the same donation, it gets nothing.
  • Do Not Receipt and Acknowledge Only are checked before fund rules, so a fund rule can't bring back a donation these flags have excluded.
  • If both Patron Language rows match the same donor, English wins.

Field Types and Trigger Values

Every behavior row and the Non-Cash Gift Type row ask what kind of attribute you picked. Choose the type that matches the attribute in Spektrix:

TypeMatches when
CheckboxThe box is checked
Text fieldThe value equals one of your trigger values
Dropdown listThe selected option equals one of your trigger values
DateAny date is set. The date itself isn't checked.

For a text field or dropdown list, type each trigger value and press Enter. Trigger values ignore case, so "yes" matches "Yes" and "YES".

Custom Variables

This card turns a Spektrix attribute into a variable you can use in receipt messages, acknowledgment letters, emails and custom PDF templates. It lists every discovered attribute, labelled Donor, Gift or Membership by where it comes from.

To add one:

  1. Click Add as variable next to the attribute.
  2. Edit the Variable name if you want. PatronSend suggests one, and adds a prefix for you: ATTR_ for donor attributes, GIFT_ATTR_ for gift attributes and MEMBER_ATTR_ for membership attributes. Names use capital letters, numbers and underscores.
  3. Enter a Label, the name you'll see when picking the variable.
  4. Save.

The card then shows how to use it: @ATTR_SALUTATION@ in PatronSend messages and emails, or {{ data.ATTR_SALUTATION }} in a DotDigital campaign. See Available Variables for how variables work.

For a variable you've added, Disable stops it filling in on new documents without deleting it, Rename changes its name or label, and Remove deletes it. Renaming the attribute in Spektrix later doesn't change the variable name.

Only the attributes you add are stored by PatronSend. The Standard plan includes 20 custom variables; the Advanced plan has no limit.

New Zealand Organizations

New Zealand receipts monetary gifts only, and a donation that gives the donor a benefit can't be receipted at all. So New Zealand organizations don't see the Advantage Amount, Advantage Description, Gift Description or Non-Cash Gift Type rows.

Testing Mappings

After saving your mappings, create a receipt from an order that has the attribute set:

  1. Go to Documents > Create Receipt.
  2. Select the Spektrix Order tab and enter the order ID.
  3. Check that the mapped fields are filled in correctly.

To apply new mappings to a draft that already exists, open the draft and choose Resync from Spektrix from its actions menu. PatronSend fetches the order again. If the order is now excluded, for example by a Do Not Receipt attribute, the draft is archived.

Troubleshooting

Attribute Not Appearing

  • In Spektrix, check that This attribute is visible in your API integrations is checked on the attribute.
  • Check that the attribute has a value on at least one recent order, customer or membership.
  • Click Sync attributes on the Discovered Spektrix Attributes card.
  • If it still isn't listed, choose Use a custom path… in the picker and type the attribute name.

Wrong Value Showing

  • Check for a fund rule that sets the same field. Fund rules take priority.
  • Check that the attribute is mapped to the right field.
  • For a behavior or Non-Cash Gift Type row, check the field type and trigger values.
  • Check the attribute's value in Spektrix directly.

Standard Field Mappings

The following fields are automatically extracted from Spektrix data. No configuration is required for these mappings.

Donor Information

Receipt FieldSpektrix SourceRequired
First NameCustomer.FirstNameYes
Last NameCustomer.LastNameYes
EmailCustomer.EmailYes
PhoneCustomer.PhoneNo

Address

Receipt FieldSpektrix SourceRequired
Address Line 1Customer.BillingAddress.Line1Yes
Address Line 2Customer.BillingAddress.Line2No
CityCustomer.BillingAddress.TownYes
Province/StateCustomer.BillingAddress.AdministrativeDivision.CodeYes
Postal CodeCustomer.BillingAddress.PostcodeYes
CountryCustomer.BillingAddress.Country.IsoCodeYes

Gift Details

Receipt FieldSpektrix SourceRequired
Gift AmountDonation.AmountYes
Gift DateOrder.FirstTransactionDateYes