The Import from Blackbaud Raiser's Edge NXT - List Constituents script template pulls in a list of constituents from the Blackbaud SKY API onto a Civis Platform table. This script template uses the “ListConstituents” API endpoint from the Blackbaud SKY API.
Blackbaud SKY API Authorization
This script template requires the appropriate Blackbaud credentials. If you haven’t done so already, please follow the steps in Blackbaud SKY API Authorization.
If you already have a Civis Platform custom credential for a Blackbaud refresh token, it is possible that it may have expired (365 days after creation). If you run into import issues due to an expired refresh token, you will need to regenerate the refresh token by re-running your deployed Civis Platform service described in Blackbaud SKY API Authorization; the same Civis Platform custom credential will be overwritten with a new Blackbaud refresh token.
Parameters
- Blackbaud Subscription Key (required): A valid credential containing the appropriate subscription primary access key.
- Blackbaud Application ID and Secret (required): A valid credential containing the appropriate client ID and secret as username and password.
- Blackbaud Refresh Token (required): A valid credential containing the appropriate refresh token as generated by the OAuth report.
- Constituent Code (optional): Comma-separated list of constituent codes. Returns constituents if any of the specified constituent codes match any of their assigned constituent codes. For example, Board Member,Volunteer returns constituents with either "Board Member" or "Volunteer" constituent codes.
- Constituent ID (optional): Comma-separated list of constituent identifiers. Returns constituents if any of the specified constituent identifiers match any of their constituents. For example, 280,232 returns constituents with either "280" or "232" constituent identifiers.
- Custom Field Category (optional): Comma-separated list of custom field categories. Returns constituents if any of the specified custom field categories match any of their active custom fields. For example, Interests,Anniversary returns constituents with either "Interests" or "Anniversary" custom fields.
- Fields (optional): Comma-separated list of fields to include on the returned records. For example, id,first,last,deceased_date. The id field will always be returned.
- Fundraiser Status (optional): Comma-separated list of fundraiser statuses. Returns constituents if any of the specified fundraiser statuses match the constituent's fundraiser status. For example, Active,None returns constituents whose fundraiser status matches Active or None. Valid values for this filter are Active, Inactive, and None.
- Include Deceased (optional): Select to include deceased constituents in the response.
- Include Inactive (optional): Select to include inactive constituent in the response.
- List ID (optional): list identifier used to filter the set of constituents to those included in the specified list. If this value is set, other specified filters will be ignored.
- Postal Code (optional): Comma-separated list of postal codes. Returns constituents if any of the specified postal codes match the postal code for their preferred address. For example, 99577,14623 returns constituents whose preferred address has a postal code that matches or starts with 99577 or 14623, such as 99577, 14623, or 99577-0727.
- Date Added (optional): Represents a filter for results created on or after the specified date. The filter respects time offsets from UTC per the ISO-8601 format: 2016-05-05T17:59:31.1600745-04:00.
- Days (optional): How many days back to sync results from the last time they were modified. To make sure no data is missed, Days will always go backward from midnight UTC. When specified, this will be used instead of Start Date.
- Start Date (optional): Represents a filter for results modified on or after the specified date. The filter respects time offsets from UTC per the ISO-8601 format: 2016-05-05T17:59:31.1600745-04:00.
- Sort (optional): Comma-separated list of fields to sort the results by. Returns a list that sorts constituents based on the supplied fields. Results are in ascending order by default, and a '-' sign denotes descending order. For example, date_added,-last sorts constituents by the "date_added" field in ascending order and then by the "last" field in descending order.
- Destination Database (required): The database in which to write records to.
- Destination Database Credential (required): A valid database credential for the
- Schema and Table (required): The schema and table name you would like to import the data into, e.g. “schema.table”.
-
Table Exists (optional): The action to take if a table with the requested name already exists.Options are:
- Fail: The sync job fails if the table exists
- Append: Records will be appended to the existing table
- Wipe: Records on the table will be wiped out while maintaining the current columns.
- Drop: Removes the entire table including column information.
- Upsert: Update or insert records into the specified table. The upsert mode modifies the table by leveraging the Primary keys as well as Last modified Keys provided to modify existing records or add new ones. Visit Upsert Mode for more information on how it works.
- Max Errors (optional): The maximum number of rows with errors to remove from the Civis Platform table import before failing. Defaults to 0 (i.e., no errors allowed).
- Dist Style (optional): The distribution style for the resulting table. One of 'even', 'all' or 'key'. Defaults to 'key'.
- Dist Key (optional): The column to use as the distkey for the table. Defaults to 'id'. If you import data that doesn’t have a column named ‘id’, please provide the column name for the primary key.
- Sort Key 1 (optional): The column to use as the sortkey for the table.
- Sort Key 2 (optional): The second column in a compound sortkey for the table.
- Primary Keys (optional): Comma separated columns that uniquely identify a record
- Last Modified Keys (optional): Comma separated columns indicating a record has been updated
- Log Level (optional): Log level to output in log. Defaults to INFO.
Comments
0 comments
Article is closed for comments.