Field transforms
How to have Engage fill a field, such as the donation item, by rules that read other values in the row, so that a platform's own words turn into yours on every import.
Where: Engage, Imports, Queues and Feeds, a queue, Field Transforms
- Also from
- Add Transform Rule, in a field's menu on an import record
- If you can't see it
- Your role needs Manage Import Setup for filling a field with a transform and Import Data for adding its rules, and your administrator can add each one.
A platform's report says what each gift was for in its own words, such as an appeal name or a page title, and those rarely match the names of your donation items. A field transform turns them into yours: instead of reading a field such as the donation item from a column, Engage works it out with rules you write, such as one saying that when the appeal name is Spring appeal, the donation item is Donation item A. Once a rule is there, every row like it goes in by itself, today and in every import after.
Fill a field with a transform
The feed's mapping decides whether a field is read from a column or filled by a transform. On the feed's Mapping step, select the transform button beside the field, "Populate this field using a Transform", and save the feed. Creating a CSV feed and importing a file covers the mapping.
Engage then makes one transform for that part of the feed, such as its donation line. The transform fills in the fields you've set this way. Its rules can look at any other value the feed brings in for that part, such as the appeal name. Some platform templates already fill the donation item and fund dimensions this way.
Add rules
Each transform is listed on its queue's Field Transforms tab, with the fields its rules look at, the fields it fills in, and how many rules it has. Select its reference to open its rules, then select Add Rule:
- Under Condition, choose the Input Field to look at, how to compare it, such as Exact or Contains, and the value to look for. Select Case Sensitive if capital letters matter. Add another condition if the rule needs more than one thing to be true.
- Under Output(s), say what each field should be when the rule applies, such as the donation item to use.
- Save the rule.
Engage tries the rules in order, and the first one that applies to a row fills the field. Put the most specific rules first, and choose where a new rule goes with Insert Before Rule #. If no rule applies to a row, the field is left without a value, and if the field needs one, the import record waits for you.
Add a rule from an import record
The quickest way to write a rule is often from an import record that's waiting because a rule was missing. On the import record, open the menu of the field the rule should read, such as the appeal name, and select Add Transform Rule. The rule starts from the import record's own value, as Records that didn't import describes.
Whichever way you add a rule, saving it applies it right away to the import records from that feed that are still waiting, and Engage continues with any it changes. You don't need to reprocess them.
Who can see a transform
People who can set up imports see every transform. Everyone else sees only the transforms they've been given access to, and can change the rules of those. A new transform starts with the same access as its queue. Update Access, in the transform's menu, changes who has access.
Turning a transform off
In the transform's menu, Deactivate stops it from filling in its fields in future imports, and Delete removes it along with its rules. Both are for people who can set up imports.