bpmContext cleared in UBAQ?

Just trying to wrap my head around this. I have a ticket with support but this appears to be such a glaring omission that I assume others have run into this.

I have a UBAQ and I want the initial values to be driven by the main record the user has selected. I adjusted the BAQ to have a parameter and then I adjusted the code for GetList to store the parameter value into bpmContext Character01 using a post-processing BPM. This is the popup box when that runs showing Character01 (3439) and others in my testing.

image

I set the initial values in the proper place in the BAQ:

After I click on the GetNew button, the values in the record are missing Key1 and Key5

I have put in info messages and the bpmcontext is blank in the GetNew BPM.

I thought that the context was persistent for my whole session?

Edit: misread

No, just that particular BPM call.

Bummer. So my other option was use UserCodes to pass values between BPMs or is there another way you could recommend?

1 Like

Pass it in the bpm context for the update call from your event on the form.

OK, I already have it in the bpmContext so I must be dense. Somewhere between GetList and GetNew it clears. Are you saying the Update BPM should see the original bpmContext?

I haven’t looked super closely at what you’re doing, but if you need it on update, set it before update.

Solved my issue. Gave up on BpmContext and switched to using environment variables as per this post:
Epicor 10 Environmental Variables: Pass Data to Forms — GingerHelp

1 Like