Backend workflow to change a transaction by referencing existing records within the transaction

I’m trying to add a step to a backend workflow that changes data in a transaction that already has data points existing. This backend workflow runs when a seller manually presses a button to confirm a sale, after a buyer has ordered an item from them within the last 48 hours. In this backend workflow, the first step changes the “status” data field in the transaction from “pending” to “confirmed”. What I’d like to do is then award points to an affiliate, which is referenced through a user data type relationship on the “buyer” user data that is set on the transaction. So the reference would look like- Transaction’s Buyer’s affiliate. This would be the 15th step of the workflow, and previous steps change data in the underlying transaction as well as the buyer and seller users. I have tried using “this transaction”, “result of step x”, and “transaction” (parameter for the backend workflow), and I cannot get it to work. What am I doing wrong?

What’s not working? If Buyer is linked to Transaction you should be able to access it the way you are describing.

None of my data that I am trying to set is being set. So for example one field on the transaction is “affiliate” and it needs to pull a value from the “buyer” that is already present on the transaction. This is one of the values I am trying to set during this workflow. I will mention that both the transaction itself and the user associated as “buyer” have values that are changed as the first few steps in this workflow, but those data points are not being revised in the step I am trying to add right now.

Please send some screenshots:

  • Problematic step of the workflow, including any relevant information
  • Datatype definition of involved datatypes
  • DB records involved, with relevant fields and values
  • Debugger inspection of relevant fields, at the problematic step of the workflow