Erp-baq send parameter to baq

Trying my luck retrieving data from a baq in Application Studio
how do I set the erp-baq BAQ Execute Options to reference a parameter I have set in the BAQ
I have tried myParameter = ‘{view.field}’ for the Where which results in error, I have tried @myParameter = ‘{view.field}’ for the Where which also results in a different error. The Application Studio online Help is most unhelpful with this…

To use a BAQ with parameter inputs, please use the rest-erp event action (Ice.BO.DynamicQuerySvc::ExecuteByID) with the correct setup on the Method Parameters for the executionParams field… something like below sample…

   {
	"ExecutionParameter": [
		{
			"ParameterID": "PartNum",
			"ParameterValue": "{KeyFields.PartNum}",
			"ValueType": "string"
		},
		{
			"ParameterID": "CompanyCode",
			"ParameterValue": "{CallContextBpmData.Character01}",
			"ValueType": "string"
		}
	]
}

Hope that helps.

6 Likes

That worked - Thanks

How did you structure your response parameters @Ishkaran when using dynamic query? When I have mine setup like this I get the toLowerCase error in the dev tools console with the rest-erp call.

I recreated the event and seems to have resolved the error in the rest call :thinking:

1 Like