Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Using %request.Data in production

Question
Dan Goldman · Jun 16, 2022

Using %request.Data in production

I am trying to pass %request.Data from my rest dispatch class to a production so that I can use it in by business operation.  I have created a message that has a property:

Property urlParameters As %String [multidimensional];

to get the data to the production. I am new to intersystems and multidimensional arrays/globals

dispatch class:

Kill parameters
Merge parameters = %request.Data
Set genericRequest = ##class(Core.API.V1.Msg.GenericRequest).%New()
Set genericRequest.urlParameters = parameters

business operation:

Access data from the multidimensional array that is being passed in the property genericRequest.urlParameters.

Any suggestions are greatly appreciated.

Thanks

Dan

#InterSystems IRIS
Product version: IRIS 2022.1

Source URL:https://community.intersystems.com/post/using-requestdata-production