Planning Analytics

Planning Analytics

Get AI-infused integrated business planning

 View Only
  • 1.  Rest API Process Debug Create Breakpoint

    Posted 05/20/22 09:37 AM
    How does one create a breakpoint within a debug session using the Rest API? I understand how to start a debug session for a TI ../Process('<process name>')/tm1.debug and how I can use the debug session ID to get the debug context ../ProcessDebugContexts('<debug ID>'). I further grasp that I can navigate or expand into the Breakpoints, but I'm struggling to actually create a breakpoint via Rest. I suspect I need to do a POST on ../ProcessDebugContexts('<debug ID>')/Breakpoints, but can't seem to get the payload right. Below is example payload I'm trying against the last URL.

    {
        "ProcessDebugContextBreakpoint": {"ID":1, "Enabled":true, "HitMode":"BreakAlways", "Expression":"nVar1 > 6"}
    }​


    ------------------------------
    Andrew Scheevel
    ------------------------------

    #PlanningAnalyticswithWatson


  • 2.  RE: Rest API Process Debug Create Breakpoint

    Posted 05/20/22 03:25 PM
    I figured it out. I needed the url to be ../ProcessDebugContexts('<debug session id>')/Breakpoints and I was missing an odata.type parameter in the payload. The below payload worked with the updated URL.

    {
        "@odata.type":"tm1.ProcessDebugContextDataBreakpoint",
        "ID":1,
        "Enabled":true,
        "HitMode":"BreakAlways",
        "Expression":"nVar1 > 6",
        "VariableName":"nVar1"
    }​​


    ------------------------------
    Andrew Scheevel
    ------------------------------