Search code examples
apimicrostrategy

how to trigger event in MicroStrategy using api


I have a requirement where I have to run a MicroStrategy trigger which i need to run after a SQL job completes. What are options I can use and if I want to run this code what details needed.

i have gone through a link https://www2.microstrategy.com/producthelp/2020/RESTSDK/Content/topics/REST_API/REST_API.htm#:~:text=The%20MicroStrategy%20REST%20API%20is,client%20applications%20quickly%20and%20easily. but i have a limited knowledge of rest api .


Solution

  • The latest documentation doesn't cover the Events API, but the Swagger documentation does.

    MicroStrategy's demo instance has the latest version of this: https://demo.microstrategy.com/MicroStrategyLibrary/api-docs/index.html

    and the endpoint you're looking for is /api/events/{id}/trigger.

    (This answer assumes that you're running some sort of process externally to MicroStrategy, and then need to trigger an event to indicate its completion. The documentation covers how to retrieve and use an authorisation token to call this endpoint.)