Skip to main content
An engagement represents a service or activity performed for one of your clients. When you create an engagement within an organization, it will always be associated with that organization. Engagements house the analyses you run within MindBridge, like the general ledger analysis. Because engagements belong to an organization, see Organizations for how to work with organizations using the Python SDK.

Create a new engagement

As in the web application, you can create an engagement using the Python SDK.
  1. See Organizations for how to create the server and create an organization.
  2. It is assumed you have imported the module with import mindbridgeapi as mbapi.

Retrieving an engagement by ID

You can retrieve an existing engagement by id. The example below uses the id of the engagement you created above.

Querying engagements

Query engagements, optionally applying a filter. Engagements can be searched using the MindBridge Query Language, as described in the MindBridge API Reference. The get function returns a generator, allowing you to iterate over search results or use the next() function. To list engagements for an existing organization, use the engagements property of the organization, which yields a generator of engagements within that organization.