Hello everyone, I have followed the example mentioned in the referenced post, the BAQ that I need to call needs to receive parameters, when I try to add the parameters by code, the function is not taking said parameters and therefore does not return anything, try to configure the parameters of the BPM so that in case the value is not filled, I ignore it and follow your query, then it returns what I need.
You filled dsBAQ with the “Empty” parameters when you called: tQuery.GetExecutionParameters(dsQuery)
And then you tried to add those same parameters as new ones to dsBAQ.
If you get them first, (GetExecutionParameters) you need to set them, not add them. dsBAQ.ExecutionParameter.Where(x => x.ParameterID == "PartNum").FirstOrDefault().ParameterValue = oPartNum;
Or like Nacho (@Ignacio ) said: dsBAQ.ExecutionParameter[0].ParameterValue = oPartNum if you know the order.
If you want to add them yourself, you can do that on a new, empty dataset, or you can call Clear()
on dsBAQ.ExecutionParameter before adding them.