TreeINFO-For-M365 documentation
    Preparing search index...

    Mode 2: Stop by workflow name + items

    const { workflow } = tisa;
    await workflow.instances.stop({
    workflow: "ApprovalWorkflow",
    items: [{ listId: "72b67e8c-b1c1-4d41-8eaa-69944b79a28c", itemId: 12 }]
    });
    interface StopBodyByWorkflowItems {
        items: { itemId: number; listId: string }[];
        workflow: string;
    }
    Index

    Properties

    Properties

    items: { itemId: number; listId: string }[]

    Items whose running instances of the specified workflow should be stopped.

    workflow: string

    Internal name of the workflow whose running instances should be stopped.