Skip to main content
This section guides you through creating a General Ledger Analysis, creating a TRA Vendor Analysis, retrieving an Analysis by its ID, and querying Analyses using the MindBridge SDK.

Prerequisites

First run this block to configure your server.

Creating a General Ledger Analysis

To setup an Analysis we first need an Organization and an Engagement. If no library_id is included in the EngagementItem the MindBridge SDK will create one using the MindBridge for-profit (Mac v2) Library. This Library includes the General ledger, Accounts payable and Accounts receivable analysis types by default.
Now that the Engagement “Engagement - MindBridge for-profit Library” is created, we can create an analysis within it.
At the above link, you should have an analysis ready for you to upload data.

Creating a Custom Analysis

To create a Custom Analysis we first need a Library with our desired Analysis Type. Then we’ll create an Engagement that uses that Library. In this example we will setup a TRA Vendor Analysis by creating an Analysis Type using the TRA Vendor Template provided by MindBridge. First create a TRA Vendor Analysis Type within the Analysis Designer:
  • Go to the Analysis Designer
  • Find the Analysis Type named “TRA Vendor Template”
  • Duplicate the TRA Vendor Template and set the name to “SDK TRA Vendor”
  • Click “Save”
  • Go back to the Analysis Designer page
  • Select “Publish” on the “SDK TRA Vendor”
Then, create a Library with that Analysis Type
  • Go to the Libraries page
  • Select “Create Library”
  • Set the name to “SDK TRA Vendor Library”
  • Set the base library to “MindBridge for-profit (MAC v.2)”
  • Add “SDK TRA Vendor” to the Analysis Types
  • Set the Account grouping to Mac v.2
  • Select “Create Library” You should now have a Library called “SDK TRA Vendor Library” which contains the Analysis Type “SDK TRA Vendor”
Now we can create an Engagement that uses this library by providing the library_id in the EngagementItem.
Now that the Engagement “Engagement - SDK TRA Vendor Library” is created, we can create an Analysis within it. Note that we need to fetch the Analysis Type from the Engagement