Hi Guys,
Is the rest API supposed to take Number’s as string’s?
I am trying to insert into a UD table and I need to put “” around my number’s before the app server will accept it.

I can work around, just looks a bit ugly…
Cheers
P
Hi Guys,
Is the rest API supposed to take Number’s as string’s?
I am trying to insert into a UD table and I need to put “” around my number’s before the app server will accept it.

I can work around, just looks a bit ugly…
Cheers
P
you are using the custom methods. Try the odata endpoint and see if there’s a difference…
-Jose
Without actually trying it they both look the same for how the numbers are handled.
@PatL - Are you using the custom methods?
Also I believe the json array always has the quotes but the data type is defined as decimal
-Jose
No I am using a Odata post (for a ud table).
I am using Json.Net and it’s serialize is outputting numbers without " and the app server is rejecting it.
I just added a another property which converts my number to a string and told json.net to ignore the number property and only serialize the string and it’s fixed it.
Your screenshot showed you were using the custom methods (GetNewUDXX)
-Jose
In Odata, at least in v3, it is by design.
Thanks Olga,
I was looking at it from more a json spec standpoint but if it’s in the odata standard than that’s cool.
Appreciate your input!