Data Transform to change a record's Workflow State

I have a use case were I need to force a workflow status change on a record. It’s a Sales Order, and the Header and Detail records are in Invoiced Status. I need to move them to canceled.

I wrote a simple Data Transform Logic Block that does this:

  • Fetch SO Header
    • Fetch SO Detail
      • Update Workflow action on SO Detail
    • Update Workflow action on SO Header

I added this to a data transform definition. I cannot save the DT Def because it does not recognize any mutations in my DT LB.

Am I using the “Update Workflow” action correctly? I have set it to update the State and State Type to Canceled, which is a valid combination on the active workflow. My source doc is the SOHeaderFetch and SODetailFetch.

Do DTs allow you to update WF State like this?

Do I need to use the znwWorkflowInstance as my doc type, or are my record fetches accurate?

I added a regular Update to my fetches after the Update Workflow actions and I get the same result - error in my DT Def.