Register for a Free Account
Name
Email
Choose Password
Confirm Password

Spark Transformers: Using Related Records

A Spark event only knows about the records involved in what just happened, such as the donor and the campaign of a new gift. A transformer is an optional step that looks up a related record (for example the campaign's website profile) so your outcomes can use it.

Do you need a transformer?

Often you don't. Many events already include related records:

  • Contribution events such as New Contribution include the Donor, Campaign, Campaign Owner and Campaign Content Item, plus the affiliated giver, soft credit and tribute person when there is one.
  • Letter events include the Sponsor and the Child.
  • Person events include the Person (and the record's owner).

Add a transformer only when an outcome needs a record the event doesn't include. For example, a Person Type Assignment event gives you a person, but the Change Searchable Status outcome needs a content item, so you add the Person to Content Item transformer in between.

The transformers

  • Campaign Owner: from a campaign, finds the CRM record that owns it (for example the missionary). Use it to message or tag the owner. It only works when the campaign has an owner.
  • Campaign Content Item: from a campaign, finds its content item in Site Planner, so you can tag it, change its workflow stage or change whether it is searchable.
  • Content Item to Campaign: from a content item, finds its giving campaign, so you can update campaign settings such as the goal amount.
  • Person to Content Item: from a person, finds their content item of the content type you choose, for example a child's or missionary's profile.
  • Site: brings in the site you choose in its settings.
  • Site Content Type: from a site, brings in the content type you choose.

Chaining transformers

Transformers can be chained, each one starting from the result of the one before. For example, Person to Content Item followed by Content Item to Campaign goes from a person to their profile, then to the profile's giving campaign.

Tips

  • Transformers don't change any data. They only make related records available to your outcomes.
  • If an outcome does nothing, check that the transformer found a record: for example that the campaign has an owner, or that the person has a content item of the chosen type.
  • Use only the transformers you need, and test the rule before turning it on.

Related guides