Skip to Content
Jun 23 at 03:47 PM

How to enable action parameter of a complex type array as nullable?


Hello Colleagues,

We have a parameter array of Location, defined as, Location : array of TOLocation

and the TOLocation is defined as a structure of location type and location ID, when we are invoking this action, we require to accept a payload without Location parameter. It should not be mandatory.

We have tried writing something as, Location : array of TOLocation null

However it is still failing for us pfa,location.png
It happens when the structure is iterated. Shouldn't we not iterate, if the array of structure is marked as nullable, and when it is null as part of payload? Or do we have other ways to achieve this?

Any guidance would be really helpful.



location.png (192.0 kB)