BPMData does not exist in the current context

Hello,
I am trying to pass data from custom code that is stored in the CallContextBpmData.Number01 - Number10 and feed them into my grid on a bpm form. I’m having an issue pulling in those numbers. Any help getting that bpm data into my customization would be awesome. Thanks in advance.

Where are you declaring BPMData? That needs to be pulled in from a DataView.

var edv = oTrans.Factory("BPMData");

How do I figure out the name of the DataView that my bpm is using? I figured I would still have access to the callContextBpmData since the form could pull them in if i was using the typical form fields no problem.


I’m also not set in stone on doing it this way if I’m making it harder than it has to be.

You can see the available dataviews in the Tools -> Object Explorer in the Customization.

  1. Set Value
        var edvBPMData = this.oTrans.Factory("CallContextBpmData");
		var edvBPMDataRow = edvBPMData.CurrentDataRow;
		if(edvBPMDataRow != null)
		{
			edvBPMDataRow["Character01"] = "Set Value Here";
		}
  1. Get Value
       var edvBPMData = this.oTrans.Factory("CallContextBpmData");
		var edvBPMDataRow = edvBPMData.CurrentDataRow;
		if(edvBPMDataRow != null)
		{
			var Character01 = Convert.ToString(edvBPMDataRow["Character01"]);
			MessageBox.Show(Character01);
		}

Awesome. Thank you both for the help. Working like a charm now.