My Products
Help
JohanFriedrichsen
CONTRIBUTOR **

/inventory returning checkbox attribute as both 1 and true

by JohanFriedrichsen

A customer has added an inventory attribute as a checkbox called WEBARTICLE.

 

When using a GET on /inventory and expanding attributes some inventories return the attribute as "1" and some as "True".

 

Why is this?

 

No filtering is used, just expanding. The full call is:

 

https://integration.visma.net/API/controller/api/v1/inventory?addCostPriceStatistics=true&expandCros...

5 REPLIES 5
JohanFriedrichsen
CONTRIBUTOR **

by JohanFriedrichsen

Yes, we have examples of both kinds of results but we have not been able to see any pattern between them (yet).

 

SPAS0480170  {"id":"WEBARTICLE","value":"1"}
SPAG0480170  {"id":"WEBARTICLE","value":"1"}
SPBL04120240  {"id":"WEBARTICLE","value":"True"}
SPAG03120240 {"id":"WEBARTICLE","value":"True"}

Hello Johan, 

 

have you tried overwriting the existing values in the Financials UI ?  (Inventory > Attributes > Uncheck Save > Check Save the boolean values)

by Magnus Johnsen

Hi,

Have you seen any patterns to which items return what value?

Could you provide us with some examples?

Thank you.

JohanFriedrichsen
CONTRIBUTOR **

Any update on this?

We have more customer related information but it isn't something that is suitable to post in an open forum.

Hi,

So far we have not been able to reproduce this.

You can send it to developersupport@visma.com.

Thank you.