Retrigger Failed Orders in a B2B Store with an Automatic Flow

When an order fails (PlaceOrderFailed), a process exception record is created. As a Commerce admin, you can view the record to investigate the cause and fix it. After the record’s status is changed to Resolved, you can use the Retrigger Place Order flow to place the order gain.

Required Editions

View supported editions.

Which Salesforce Commerce Product Do I Have?

Before deploying the Retrigger Place Order flow, configure sharing settings for the Commerce admin.

  1. If your store was created using sfdx after the Summer ’23 release, go to step 3 to activate the preinstalled Retrigger Place Order flow.
  2. If your store was created before Summer ’23, deploy the flow.
    1. In your browser, go to https://github.com/forcedotcom/commerce-on-lightning.
    2. If you haven’t already, clone the commerce-on-lightning repo.
    3. Check out the main branch.
    4. Open a command prompt and navigate to the commerce-on-lightning/examples/b2b/checkout/retrigger-place-order directory.
    5. Deploy the flow using SFDX.
      sfdx force:mdapi:deploy -d <path-to-this-directory> -w -1
  3. Activate the flow.
    1. Click Setup at the top of the page, and then select Setup.
    2. In the Quick Find box, find, and select Flows.
    3. Click Retrigger Place Order.
    4. Click Activate.