We have an external system that finishes its process by using the SDK to create a document in the repository. There is a workflow watching for this document. The workflow starts and manipulates the data, the majority of which is a json. With freshly parsed json data the workflow performs an Invoke Business Process action to load data into a form. The form loads with all of the starting variables. The form is then passed on to the first of several departments for approval.
I'm running into trouble on the first form. The main lookup key is StudentID. There are a few lookups that should perform using StudentID. I'm not sure exactly what is happening but I believe that the lookup may be starting before StudentID has been populated with the starting variable value. That seems to make the most sense since all of the values that should be returned are blank. If I move the lookups using StudentID to the first approval form, it works just fine. Unfortunately, I need to send some emails using that looked-up data before I reach the second form.
I've tried triggering changes on StudentID with jquery, but that didn't work. I've tried forcing a 5 second delay and then triggering change on StudentID, but that didn't work. StudentID has it's value that was passed in as a starting variable, I'm just not able to successfully use it in a lookup.
Any ideas?