I'm running a workflow initiated by a Forms instance. Whenever my form gets to the workflow, this.BoundEntryID is -1, and I can't get a value for this statement:
DocumentInfo doc = (DocumentInfo)this.BoundEntryInfo;
Should I be accessing a different variable?