Workflows now supports saga-style rollbacks, allowing you to add compensating logic to each step.do() in case of downstream failures. If the instance fails, the rollback handlers will execute in reverse step-start order.
This is useful for multi-step operations that touch external systems, such as inventory reservations, payment authorization, ticket creation, or infrastructure provisioning. Instead of writing all cleanup logic in a top-level catch, you can keep each compensating action next to the step it undoes.
Rollback handlers support their own retry and timeout configuration, and Workflows now exposes rollback outcomes in instance status responses. Workflows analytics also emits rollback lifecycle events, making it easier to distinguish a forward execution failure from a rollback failure when debugging production workflows.
JavaScript
await step.do("provision resource",async () => {const resource = await provisionResource();return { resourceId: resource.id };},{rollback: async ({ output }) => {const { resourceId } = output;await deleteResource(resourceId);},rollbackConfig: {retries: { limit: 3, delay: "15 seconds", backoff: "linear" },timeout: "2 minutes",},},);TypeScript
await step.do("provision resource",async () => {const resource = await provisionResource();return { resourceId: resource.id };},{rollback: async ({ output }) => {const { resourceId } = output as { resourceId: string };await deleteResource(resourceId);},rollbackConfig: {retries: { limit: 3, delay: "15 seconds", backoff: "linear" },timeout: "2 minutes",},},);
Refer to rollback options to learn more.
Source: Cloudflare
Latest Posts
- MC1430542: Outlook Adds Copilot Integration for Real-Time Email Drafting

- MC1430543: Excel Copilot Adds Text Summarization and Automatic Category Generation

- MC1430531: Outlook Retires Meeting Insights and Shifts to Copilot Meeting Preparation

- MC1430537: Copilot in Excel Gets Brand Kit Skill to Apply Organizational Branding to Workbooks





![(Updated) Microsoft 365 Copilot: Add web links as references in Copilot Notebooks [MC1193414] 6 (Updated) Microsoft 365 Copilot: Add web links as references in Copilot Notebooks [MC1193414]](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-rafael-santos-216811467-12090444-96x96.webp)