Question
· Nov 30, 2023

Custom Message Class Property Definition

I have a API that is returning on objext with four fields. Two are arrays that are empty.  How can I define the message class property to ignore/handle "Messages" and "SharedRelations"?

 

Discussion (3)1
Log in or sign up to continue

Hello @Michael Wood 

If those values are not part of the response. Then don't need to worry about it. Code will skip by default. Incase if the property is not defined . Then you have to declare the %JSONIGNOREINVALIDFIELD value as 1 to prevent from that ERROR #9406: Unexpected format for value of field.

Parameter %JSONIGNOREINVALIDFIELD As BOOLEAN = 1;
ObjectScript
ObjectScript