Salesforce
Connect Anedot to Salesforce with or without NPSP to record donations, commitments, and Action Page submissions and updates as Salesforce records in your org.
Salesforce works with the Anedot package to record your donations, commitments, Action Page submissions, and Action Page updates as Salesforce records, whether your org uses the Nonprofit Success Pack (NPSP) or standard Salesforce objects. You connect it in Settings > Integrations, and this article covers choosing NPSP or standard Salesforce objects, connecting Anedot to Salesforce, managing your connection, reviewing data relays, using custom templates, setting up Anedot Mapping and Custom Metadata, and finding your data in Salesforce.
Before You Begin
You need Integrations: Edit permissions in Anedot to add, edit, push, or delete a connection. Integrations: Edit permissions also require Action Pages: View and Integrations: View permissions. See Permission Sets.
Your Salesforce user needs the Download AppExchange Packages permission to install the Anedot package.
Your Salesforce org needs My Domain deployed, because Anedot uses your My Domain to connect. If you use NPSP, Chatter must also be turned on. The NPSP installer checks for both.
The Salesforce user you connect with needs the permissions listed in Required Salesforce Permissions.
Test your setup in a Salesforce sandbox and an Anedot Sandbox account before connecting live data. Testing first confirms your configuration is set up correctly before real data from your live Anedot account flows into your Salesforce account. To request an Anedot Sandbox account, contact our Support team at help@anedot.com.
NPSP Or Standard Salesforce Objects
Anedot uses one package and one Salesforce connection for every org. The Source Object setting in Anedot Settings, set to NPSP or Salesforce, tells the package which records to create. It's a manual setting, so choose the option that matches your org.
Contacts and Household Accounts
Contacts are matched by email first, then by payment method ID. If there's no match, a new Contact is created. NPSP's household settings handle the Account. If an Account named "[Last name] Household" already exists, the package creates a separate Account named "[First name] [Last name] Household".
Contacts are matched by email first, then by payment method ID. If there's no match, a new Contact is created. Each new Contact gets a new Account named "[Last name] Household".
Donations and GAUs
Each completed donation is recorded as an Opportunity. GAU Allocations are created for each donation's fund when Create GAU Allocation Records is checked.
Each completed donation is recorded as an Opportunity. No GAU Allocations are created.
Recurring Donations (with Create Future Opportunities checked)
A new commitment creates a Recurring Donation, open future Opportunities, and GAU Allocations.
A new commitment creates open future Opportunities. No Recurring Donation is created.
Commitment Updates
Updates the Recurring Donation and its Opportunities. When a commitment is canceled, the remaining open future Opportunities move to the Opportunity Closed-Lost Stage.
Reschedules the close dates of the commitment's open future Opportunities, found by the commitment's submission. When a commitment is canceled, the remaining open future Opportunities move to the Opportunity Closed-Lost Stage.
Same Either Way
Campaigns, Campaign Members, submissions, Anedot Tickets, Anedot Donation Exceptions, and Anedot Mapping and Custom Metadata.
Same as NPSP.
You'll choose Source Object in Step 3. Step 1 applies only to NPSP orgs.
Connect Anedot to Salesforce
Connecting Anedot to Salesforce has four stages. You'll install NPSP if your org uses it, install the Anedot package in Salesforce, set up the package, and then connect Salesforce in Anedot.
Step 1: Install NPSP (NPSP Orgs Only)
To install NPSP:
Go to the Salesforce NPSP installer at https://install.salesforce.org/products/npsp/latest.
Choose the Install NPSP plan.
Log in to the Salesforce org where you want to install NPSP.
Complete the prompts in the installer.
The installer checks that My Domain is deployed and Chatter is turned on, then installs NPSP in your org.
Step 2: Install the Anedot Package
The current version of the Anedot package is 1.9.0.1. To install the Anedot package:
Open the install link for your Salesforce org type:
Production or Developer Edition org:
https://login.salesforce.com/packaging/installPackage.apexp?p0=04tg7000000GeCpAAKSandbox org:
https://test.salesforce.com/packaging/installPackage.apexp?p0=04tg7000000GeCpAAK
If prompted, log in to the Salesforce org where you want to install the package.
Review the package components on the Package Installation Details page.
Choose Install for All Users.
Click Install.
If Salesforce asks you to approve third-party access, select Yes, grant access to these third-party web sites, then click Continue.
Wait for the installation to finish. This can take a few minutes.
Salesforce emails you a confirmation when the Anedot package is installed.
Assign The Anedot Permission Set
The Anedot package includes two permission sets, Anedot Create Access and Anedot Read Access. On a new installation, assign the Anedot Create Access permission set to the Salesforce user you'll connect with in Anedot and to any other user who works with Anedot records.
To assign the Anedot Create Access permission set:
Go to Setup.
Enter "Permission Sets" in the Quick Find box.
Click Anedot Create Access.
Click Manage Assignments.
Click Add Assignment.
Select the user.
Follow the prompts to assign the permission set.
The selected user now has the Anedot Create Access permission set.
Step 3: Set Up the Anedot Package
The Anedot package adds an Anedot app to Salesforce with an Anedot Settings tab. Your org can have only one Anedot Settings record.
To set up the Anedot package:
Click the App Launcher (grid icon) in Salesforce.
Select Anedot.
Select the Anedot Settings tab.
Click New.
Choose your settings. See the Anedot Settings table below.
Click Create.
Your Anedot Settings record is saved. To change it later, open the record and click Edit.
Anedot Settings
Source Object
NPSP or Salesforce
Choose NPSP if you use the Nonprofit Success Pack. Choose Salesforce for standard Salesforce objects.
Create GAU Allocation Records
Checkbox, checked by default. Shown for NPSP only.
Creates GAU Allocation records for each donation's fund.
Default Campaign Member Status
Your org's Campaign Member statuses
Status given to new Campaign Members.
Donation Amount Field
Total Donation Amount or Net Amount
Which amount is saved on the Opportunity.
Integration Error Email Address
Email address
Receives notices about errors in the package.
Opportunity Closed-Won Stage
Your org's Opportunity stages
Stage for completed donations.
Opportunity Closed-Lost Stage
Your org's Opportunity stages
Stage given to remaining future Opportunities when a commitment ends.
Update Contact Info from Anedot
Checkbox, unchecked by default
Updates existing Contacts with the donor's latest details from Anedot.
Create Future Opportunities
Checkbox, unchecked by default
Creates open future Opportunities when a commitment is created. With Source Object set to NPSP, it also creates a Recurring Donation.
Default Campaign
Campaign lookup (optional)
Links records to one Campaign instead of a Campaign for each Action Page.
Single Donation Record Type
Your org's Opportunity record types
Record type for one-time donation Opportunities.
URL for webhook
Filled in automatically
Your org's Anedot endpoint, for reference.
Step 4: Connect Salesforce in Anedot
To connect Salesforce in Anedot:
Go to Settings > Integrations.
Click New integration.
Choose Salesforce. You can find it under CRM or by entering "Salesforce" in the search box.
Choose the Action Page scope:
Keep All Action Pages checked to include every Action Page, including pages you add later. (Optional) In Exclude Pages, enter a comma-separated list of Action Page IDs with no spaces.
Uncheck All Action Pages and choose Selected pages to pick specific pages.
Leave Team set to All teams.
Enter the part of your Salesforce My Domain that comes before
.my.salesforce.comin Salesforce domain:For a production org at
https://yourorg.my.salesforce.com, enteryourorg.For a sandbox at
https://yourorg--sandboxname.sandbox.my.salesforce.com, enteryourorg--sandboxname.sandbox.
(Optional) Enter a JSON template in Template. See Custom Templates.
Click Continue to provider.
Log in to Salesforce as the user Anedot should connect as.
Click Allow.
Anedot finishes the setup and returns you to Settings > Integrations, where your connection is listed as Salesforce Integration.
Required Salesforce Permissions
The Salesforce user you connect with needs Read, Create, and Edit permissions on these objects:
Recurring Donations (NPSP only)
Contacts
Opportunities
Campaigns and Campaign Members
GAU Allocations (NPSP)
Accounts
Manage Your Connection
Each Salesforce connection in Settings > Integrations has Edit, Push unsent, and Delete actions.
To change the Action Page scope:
Go to Settings > Integrations.
Click Edit on your Salesforce connection.
Change the Action Page scope.
Click Save integration.
Anedot uses the new scope for records it sends from then on.
To delete a connection:
Go to Settings > Integrations.
Click Delete on your Salesforce connection.
Confirm when Anedot asks "Delete this integration?"
The connection is removed from your fundraising account.
Push unsent resends records that failed or were never sent, the same way it works for Webhooks:
Choose a date range of up to 31 days.
The start date must be within the last 12 months.
Only failed or never-sent records are sent.
Wait about five minutes between pushes.
For full steps, see Push Unsent in Webhooks (API).
Data Relays
Every Salesforce connection sends all of these events. You can't turn individual events on or off.
submission_createddonation_completeddonation_refundeddonation_partially_refundeddonation_voideddonation_chargebackdonation_chargeback_reverseddonation_ach_returnedcommitment_createdcommitment_updatedcommitment_failed_to_processaction_page_createdaction_page_updatedcustom_field_createdcustom_field_updated
Anedot doesn't send donation_settled to Salesforce. For a description of each event, see Webhook Events.
Anedot waits briefly before sending some events:
donation_completed: 15 secondscommitment_created: 30 secondscommitment_updated: 45 seconds
When one submission includes more than one donation, such as gifts to several Funds, each additional donation waits 5 more seconds.
Each request is an HTTPS POST with a JSON body of {"event": "<event name>", "payload": {...}}. Requests use the same headers as Webhooks, plus an Authorization: Bearer header with the connection's Salesforce access token. Anedot refreshes the access token before each request. See Request Headers.
The sections below describe what the Anedot package does with this data in Salesforce.
Campaigns
Each Action Page becomes a Campaign in Salesforce. To link records to one Campaign instead, set Default Campaign in Anedot Settings. This helps when you group data by initiative or vendor, such as all Facebook donations under one Campaign named Anedot.

Funds And GAUs
In NPSP, Anedot Funds map to General Accounting Units (GAUs). With Source Object set to NPSP, the package creates or updates a GAU for each fund and creates GAU Allocation records for each donation by default. To turn this off, uncheck Create GAU Allocation Records in Anedot Settings. With Source Object set to Salesforce, the package doesn't create GAUs or GAU Allocations.

Contacts
The package creates or links Contacts from Action Page submissions. It matches Contacts by email first, then by payment method ID. If there's no match, it creates a new Contact.
How a new Contact's Household Account is handled depends on Source Object:
Salesforce: each new Contact gets a new Account named "[Last name] Household".
NPSP: NPSP's own household settings handle the Account. If an Account named "[Last name] Household" already exists, the package creates a separate Account named "[First name] [Last name] Household".
The package also creates and links Campaign Member records, using the status set in Default Campaign Member Status.
To update existing Contacts with the donor's latest details from Anedot, check Update Contact Info from Anedot in Anedot Settings.

One-Time Donations
One-time donations are recorded as Closed-Won Opportunities, using the stage set in Opportunity Closed-Won Stage. The Opportunity uses the amount chosen in Donation Amount Field and the record type set in Single Donation Record Type.

Recurring Donations
How commitments appear in Salesforce depends on Source Object and the Create Future Opportunities setting.
When Create Future Opportunities is checked:
With Source Object set to NPSP, a new commitment creates a Recurring Donation, open future Opportunities, and GAU Allocations.
With Source Object set to Salesforce, a new commitment creates open future Opportunities. No Recurring Donation is created.
Commitment updates, such as amount or frequency changes, sync to the Recurring Donation and its Opportunities in NPSP. With the Salesforce setting, the commitment's open future Opportunities get new close dates based on the next payment date and frequency.
When a commitment is canceled, the remaining open future Opportunities move to the stage set in Opportunity Closed-Lost Stage with either setting. In NPSP, this also happens when a commitment is deactivated, and the Recurring Donation is closed.
In NPSP, when a commitment ends or fails, the Recurring Donation is marked "Fixed" and the Open Ended Status field is set to "None".
When Create Future Opportunities is unchecked, each recurring payment is recorded as its own Opportunity when it completes, like a one-time donation. This works the same with either setting.

Submissions
Submissions work with either Source Object setting, NPSP or Salesforce. Each submission creates or updates a Contact, matched by email, then by payment method ID, and adds the Contact as a Campaign Member of the Action Page's Campaign or the Default Campaign.

Event Page Tickets
When a submission includes Event Page tickets, the Anedot package creates an Anedot Ticket record for each ticket, including free tickets.
Each ticket record is linked to the Contact and to the Action Page's Campaign.
Ticket records store the attendee name, email, phone, ticket type, ticket group, price, and check-in time.
A ticket that's sent again updates the same Anedot Ticket record instead of creating a duplicate.
Tickets aren't linked to an Opportunity.
Tickets appear in the Anedot Tickets tab of the Anedot app.
To see tickets on Contact and Campaign records, add the Anedot Tickets related list to your page layouts.
To add the Anedot Tickets related list:
Go to Setup.
Click Object Manager.
Choose Contact or Campaign.
Click Page Layouts.
Open the page layout you want to edit.
Drag Anedot Tickets from Related Lists onto the layout.
Click Save.
The Anedot Tickets related list now appears on records that use that page layout. Repeat these steps for the other object if you want tickets on both Contact and Campaign records.
Reversed Transactions
These events create an Anedot Donation Exception record in Salesforce:
donation_refundeddonation_partially_refundeddonation_voideddonation_chargebackdonation_chargeback_reverseddonation_ach_returnedcommitment_failed_to_process
Each exception includes the event, event amount, net amount, and Anedot submission ID. When the package finds the related Opportunity, it links the exception to it and updates the Opportunity's Description to point to the exception.
Gift Of Any Amount Products
To send Gift Of Any Amount (GOAA) products to Salesforce, create a custom Anedot Mapping on the submission_created event and map it to your Salesforce product fields. See Anedot Mapping and Custom Metadata.
Delivery And Retries
Salesforce connections use the same delivery rules as Webhooks:
A 2xx response from Salesforce counts as delivered.
Failed requests retry automatically after 1 minute, then 2, then 3, adding a minute each time.
The connection stops sending after 1,000 failed attempts in a row, or after 10 if Salesforce returns
404or can't be reached. A successful request resets the count.Users with the Integration sync failed notification turned on get an email when a request fails. See Notifications.
Every request is logged in Settings > Integrations > Integration Requests with its status, request, and response. See Integration Requests.
For details, see Retries and When a Webhook Stops Sending.
Custom Templates
A custom template adds fields to what Anedot sends to Salesforce. You enter it in Template when you connect Salesforce in Anedot.
Anedot merges your template on top of the full default payload.
Keys in your template are added to the payload.
A key with the same name as a default field replaces that field's value.
Default fields are never removed or renamed.
The template applies to every event the connection sends.
Template tokens work the same as in Webhooks. Use {{field_name}} inside a string and "<<object_name>>" for objects. See Custom Templates in Webhooks (API).
This template adds donation_method and stage with fixed values and an empty prefix:
Anedot Mapping and Custom Metadata
Anedot Mapping connects Anedot relay fields, by Event Type, to Salesforce fields, by Object Type. Custom Metadata defines which Anedot fields are available to map.
Event Types:
donation_completed,commitment_created,commitment_updated,submission_created,action_page_created,action_page_updatedObject Types: Contact, Opportunity, Recurring Donation (NPSP only), Campaign Member
Default Anedot Fields are included in Custom Metadata when you install the Anedot package. Each field from a custom template needs its own Custom Metadata and Anedot Mapping.
Create Custom Metadata in Salesforce
To create Custom Metadata:
Go to Setup > Custom Metadata Types in Salesforce.
Click Anedot Field.

Salesforce Setup: Custom Metadata Types Anedot Field Click Manage Anedot Fields.

Salesforce Setup: Manage Anedot Fields Click New.

Salesforce Setup: New Anedot Field custom mapping Enter the field details:

Salesforce Setup: Anedot Field required fields form Label: a friendly name, such as
custom_prefix_label.Field Name: the API name, such as
custom_prefix.Data Type: the type of field, such as Text or Number.
Event Type: the event that carries the value.
Path: the dot path to the value in the payload, such as
payload.prefix. Salesforce may suggest a path after you pick the Event Type. Confirm it before you save.
Click Save.
Your new field is available as an Attribute in Anedot Mapping.
Set Up Anedot Mapping
To set up Anedot Mapping:
Open the Anedot app from the App Launcher.
Go to Anedot Mapping.
Select the Target Object from the dropdown in the upper right.

Anedot Mapping: select Target Object Click Create New Field Mapping.

Anedot Mapping: Create New Field Mapping Choose the mapping details:
Event Type: the event that carries the value, such as
donation_completed.Attribute: the Anedot field, from your Custom Metadata fields.
Salesforce Field: the field where Salesforce stores the value.
Click Save.
Salesforce stores the Anedot value in the field you chose each time that event is received.
Find Your Data in Salesforce
After Anedot sends data, you'll find it in these Salesforce records:
Campaigns: one for each Action Page, or your Default Campaign.
Contacts: donors and submitters from your Action Pages.
Opportunities: one-time donations, recurring payments, and future payments.
Recurring Donations: commitments, when Create Future Opportunities is checked (NPSP only).
GAU Allocations: the Funds each donation was given to (NPSP only).
Campaign Members: Contacts linked to each Campaign.
Anedot Donation Exceptions: reversed transactions, in the Anedot Donation Exceptions tab of the Anedot app.
Anedot Tickets: Event Page tickets, in the Anedot Tickets tab of the Anedot app.
Field Mapping
Salesforce payloads use the same fields as Webhooks for each record type, plus a few Salesforce-specific fields.
Commitments
commitment_created, commitment_updated, commitment_failed_to_process
See Commitment Fields.
Action Pages
action_page_created, action_page_updated
id, name, funds (list of id, name, percentage)
Custom fields
custom_field_created, custom_field_updated
id, label, input_type, internal_name
All payloads
Every event
cancellation_reason, changed_attributes (empty unless a commitment was canceled or changed)
Payload Data
For request headers, see Request Headers.
Request Body (Donation Completed)
This example is shortened. The full field list for each record type is in Field Mapping and Payload Data in Webhooks (API).
Action Page Updated
Custom Field Created
Authentication Failure
If Anedot can't get an access token from Salesforce, the request is logged in Settings > Integrations > Integration Requests as failed with response status 401 and a body like this:
Troubleshooting
Authentication Failures
A 401 response in Settings > Integrations > Integration Requests means Anedot couldn't get an access token from Salesforce.
To check the connected user in Salesforce:
Go to Setup in Salesforce.
Enter "Login History" in the Quick Find box, or open the connected user's record.
Look for failed logins or a password lockout for the connected user.
If the user was frozen, deactivated, locked out, or lost access, fix the user in Salesforce. Then delete the connection in Anedot and connect again.
Setup Doesn't Finish
If Anedot shows "OAuth setup failed" or "OAuth setup is missing information", setup was interrupted. Start again from New integration in Settings > Integrations.
Records Don't Appear in Salesforce
If requests show as successful in Anedot but records don't appear in Salesforce:
Check your Salesforce data storage. If your org reaches its data storage limit, Salesforce can't create new records, so the Anedot package can't save new records sent from Anedot. Go to Setup, enter "Storage Usage" in the Quick Find box, and review the data storage used against your limit. Delete older or unneeded records to free up space.
Check the inbox for your Integration Error Email Address for error notices from the Anedot package.
Connection Stops Sending
If your Salesforce connection stops sending, contact our Support team at help@anedot.com.
Frequently Asked Questions
Do I Need NPSP to Use This Integration?
No. If you use standard Salesforce objects without NPSP, choose Salesforce as the Source Object in Anedot Settings. Recurring Donations and GAU Allocations are created only when Source Object is set to NPSP.
Can I Choose Which Events Anedot Sends to Salesforce?
No. Every Salesforce connection sends all supported events, and you can't turn individual events on or off.
How Do I Connect a Salesforce Sandbox?
Enter your sandbox domain in Salesforce domain. For a sandbox at https://yourorg--sandboxname.sandbox.my.salesforce.com, enter yourorg--sandboxname.sandbox.
Why Doesn't a Refund Change the Opportunity in Salesforce?
Refunds and other reversals create an Anedot Donation Exception linked to the related Opportunity. The Opportunity's stage and amount stay the same, and its Description points to the exception.
How Do I Change the Salesforce Domain, Template, or Connected User?
Delete the connection in Settings > Integrations and connect again with the new details.
Can I Resend Donations That Didn't Reach Salesforce?
Yes. Use Push unsent on your Salesforce connection to resend failed or never-sent records for a date range of up to 31 days within the last 12 months.
What Does Create Future Opportunities Change?
When it's checked, each new commitment creates open future Opportunities. With Source Object set to NPSP, it also creates a Recurring Donation. When it's unchecked, each recurring payment is recorded as its own Opportunity when it completes, with either setting. See Commitments for more about recurring gifts in Anedot.
Related Articles
Was this helpful?

