Skip to main content
This section guides you through creating a general ledger analysis, creating a TRA vendor analysis, retrieving an analysis by its identifier, and querying analyses using the Python SDK.

Creating a general ledger analysis

To set up an analysis, you first need to create or select an existing organization and engagement. For details on how to work with these resources, see their respective guides. If you omit library_id from the EngagementItem, the MindBridge SDK creates a library using the MindBridge for-profit (Mac v2) Library. That library includes the general ledger, accounts payable, and accounts receivable analysis types by default.
After the engagement Engagement - MindBridge for-profit Library exists, create an analysis within it.
At the link printed above, an analysis is ready for data upload.

Creating a custom analysis

To create a custom analysis, you first need a library with your desired analysis type. Then create an engagement that uses that library. In this example, you set up a TRA vendor analysis by creating an analysis type from the TRA Vendor Template that MindBridge provides. Create a TRA vendor analysis type in the Analysis Designer:
  1. Open the Analysis Designer.
  2. Find the analysis type named TRA Vendor Template.
  3. Duplicate TRA Vendor Template and set the name to SDK TRA Vendor.
  4. Click Save.
  5. Return to the Analysis Designer page.
  6. Select Publish on SDK TRA Vendor.
Then create a library that includes that analysis type:
  1. Open the Libraries page.
  2. Select Create Library.
  3. Set the name to SDK TRA Vendor Library.
  4. Set the base library to MindBridge for-profit (MAC v.2).
  5. Add SDK TRA Vendor to the analysis types.
  6. Set the account grouping to Mac v.2.
  7. Select Create Library. You should now have a library named SDK TRA Vendor Library that contains the analysis type SDK TRA Vendor.
Create an engagement that uses this library by setting library_id on the EngagementItem.
After the engagement Engagement - SDK TRA Vendor Library exists, create an analysis within it. Fetch the analysis type from the engagement as shown below.