let’s go low code and set the values in callContextBpmData. I tried a couple of other ways, but this seems clearer. I am not using an FKV although I started there. I added three fields to end activity. callContextBpmData. Number01, 02 and 03. This bpm has three Set callContextBpmData widgets. This select is for RunQty, then is an identical on for QtyCompleted and the third subtracts 2 from 1.
I would have only had one select in code, but it is one field each.
Db.JobOper.Where(jo=> jo.Company == CompanyID && resultLaborDtlRow.JobNum == jo.JobNum && resultLaborDtlRow.AssemblySeq == jo.AssemblySeq && resultLaborDtlRow.OprSeq == jo.OprSeq).Select(x=> x.RunQty).FirstOrDefault()
E11 Qty End Act.bpm (19.3 KB)