';

Modernizing Blackbaud Financial Edge NXT® Data Workflows: Automating Analytics with Fabric and SKY API – Prototype setup instructions

BBDevDays 2025

Modernizing Blackbaud Financial Edge NXT® Data Workflows: Automating Analytics with Fabric and SKY API®

Prototype Setup Instructions

1. Create a developer account on developer.blackbaud.com

2. Create an application on developer.blackbaud.com to use for your Sky API bridge from Fabric.

3. Connect your application to the Financial Edge NXT environment you will be pulling data from through the marketplace.

4. Create a data store to use for the sample (Lakehouse, Warehouse, or SQL Database).

5. Create the config table in the store that will house your refresh token. Below is a script you can run to do so.


IF NOT EXISTS (
    SELECT * FROM sys.tables 
    WHERE name = 'Config' AND SCHEMA_NAME(schema_id) = 'dbo'
)
BEGIN 
   CREATE TABLE [Config]
   (
      [Name] [varchar](255) NULL,
      [Value] [varchar](4000) NULL
   )
   INSERT INTO [Config] VALUES('FE Refresh Token',null)
   END 
GO

6. Get an initial refresh token by logging into your Blackbaud environment using the authorize auth endpoint. You can use any REST tool like Postman
or Hopscotch.

Note: Make sure that you add the tool’s redirect URI to your app’s redirect URI tile (ex: https://oauth.pstmn.io/v1/browser-callback).
Here are some screenshots of how to do so if you are using Postman

7. Save the initial refresh token in the Config table. Below is a script you can use to do so.


UPDATE
 [Config] 
SET
 [Value] = 'Insert Initial Refresh Token Here'
WHERE
 [Name] = 'FE Refresh Token'

 

Note: You can follow steps 6 & 7 anytime you have an issue with a refresh token in the pipeline (like in a situation where the refresh token expires before the pipeline has a chance to refresh it).

8. Download the json for the sample pipeline’s “activities” from here.

9.Create a new pipeline and use the view json function to get to the pipeline’s JSON editor.

10. Replace the empty “activities” in the new pipeline’s JSON with the activities & variables array in the pipeline JSON you downloaded.

Once you do so and save the JSON you will see the pipeline design as shown below:

11.Click in the empty area on the design surface and go to the Variables tab.

Here is a list of the variables used in the pipeline and what they are used for:

  1. Query Finished Running: This is a flag used within the “Get Query Execution Status “ activity inside of the “Wait For Query to Finish Executing” activity to denote when the query has finished executing through a call made to the Sky API Query execution job status endpoint. It is set to true when that endpoint returns status = “completed” for a specific query ID.
  2. Current Query ID: The ID of the query initiated via Sky API’s Query execution job (by ID) endpoint. It is saved when that endpoint is called within the “Initiate Query API” activity.
  3. Blackbaud Sky Subscription Key: Your Blackbaud Sky Standard APIs Subscription Key. You can get it on https://developer.blackbaud.com/subscriptions/ . It is used within the “Get Query Execution Status “ activity inside of the “Wait For Query to Finish Executing” activity
  4. Blackbaud Download Base URL: This is the base URL for where Blackbaud stores its query results files. This is necessary because of the limitations in Fabric Copy Data activity when using an HTTP source. The HTTP source base URL must be static and as such the relative URL property of the Source in the Fabric Copy Data activity must filter out that base URL to complete the full URL. More is explained in the video that accompanies these instructions.
  5. Current Refresh Token: The value of the last saved refresh token as stored in the Config table created and updated in steps 5-7.
  6. Client ID: The Client ID of the application that you created on developer.blackbaud.com in step 2.
  7. Client Secret: The Client Secret of the application that you created on developer.blackbaud.com in step 2.

12. Set the values for the Blackbaud Sky Subscription Key, Client ID, & Client Secret from your subscription and Application (created in step 2)

13. Click on the “Get Refresh Token from Config” activity and update the Connection drop down. Choose the store that you created in step 4 that contains the Config table you created and populated in steps 5-7. In the example screenshot below I have selected a Fabric Warehouse I called “Good Non Profit.”

14. Click on the “Get Updated Tokens from Sky” activity and go to the Settings tab to create a new connection for Sky API’s token endpoint: https://oauth2.sky.blackbaud.com/token.

 

We use it with the Refresh token stored in the Config table as described in Step #4 in the Sky API Authorization Flow Tutorial to get new access and refresh tokens to use to make the Sky API calls during the pipeline run. Click on “More” in the “Connection” drop down, type Web in the search bar and click on “Web v2” under the New sources section

Set the Base URL to https://oauth2.sky.blackbaud.com/token, give the connection a name (ex: Refresh Tokens), and click on Connect.

The Connection property for “Get Updated Tokens from Sky” should look like the screenshot below once done.

15. Click on the “Initiate Query API” activity and go to the Settings tab to create a new connection for Sky API’s Query execution job (by ID) endpoint. That is the endpoint used to initiate a new NXT Query execution instance. Click on “More” in the “Connection” drop down, type “Web” in the search bar and click on “Web v2” under the New sources section.

Set the Base URL to
https://api.sky.blackbaud.com/query/queries/executebyid, give the connection a name (ex: Execute Query by Tokens), and click on Connect.

The Connection property for “Initiate Query API” should look like the screenshot below once done.

16. Configure the query you want to execute within the Relative URL property and the Body property contained in the “Initiate Query API” activity’s Settings. You will follow instructions as outlined in the documentation for Sky API’s Query execution job (by ID)
In the Relative URL property you will set the product and module of the query you are executing.  The screenshot below shows that I have used FE (application) & GeneralLedger (module) in the sample.  In the Body property you will set the options as outlined in the documentation.  The screenshot below shows that in my example I am calling a query whose id is 597 and I am passing it parameters for a date ask field whose id is 369 (Transaction Date) specifying that I want rows in my query whose Transaction Date is greater than or equal to 01/01/2025.  You will set your values according to your requirement following Sky API’s documentation.

17. Click on the “Wait for Query to Finish Executing” activity and then the “Get Query Execution Status” activity within it and go to the Settings tab to create a new connection for Sky API’s Query execution job status endpoint. That is the endpoint used to check the status of a query execution instance kicked off by Query execution job (by ID) and to get the resulting query results CSV download URL once the execution is completed.

Click on “More” in the “Connection” drop down, type “Web” in the search bar and click on “Web v2” under the New sources section.  Set the Base URL to https://api.sky.blackbaud.com/query/jobs, give the connection a name (ex: Check Query Execution Status), and click on Connect.

The Connection property for “Get Query Execution Status” should look like the screenshot below once done.

18. Click on the “Update Refresh Token in Config” activity and update the Connection drop down. Choose the store that you created in step 4 that contains the Config table you created and populated in steps 5-7.

In the example screenshot below I have selected a Fabric Warehouse I called “Good Non Profit.”

19. Click on the “Copy Query Data” activity and go to the Settings tab to create a new connection for the CSV download that is created by the Query API execution instance and returned as the SAS_URI property by Sky API’s Query execution job status endpoint when the query status is equal to “Completed”. Click on “More” in the “Connection” drop down, type “Http” in the search bar and click on “Http” under the New sources section.  Set the Base URL to https://nsa-pusa01.app.blackbaud.net, give the connection a name (ex: Blackbaud Query API Results), and click on Connect.

The Connection property for “Copy Query Data”’s Source tab should look like the screenshot below once done.

20. You are now prepared to run the sample. Once the sample completes you will see the results of the query that you configured to call in step 16 in the QueryResults table.