Twin_Engines | 2016-07-26 20:46:25 UTC | #1
Hello,
I am starting to use the C# SDK and i wanted to get the list of available Users but i am getting an exception: "Error converting value "WORK2" to type 'System.Nullable`1[ININ.PureCloudApi.Model.Contact+TypeEnum]'. Path 'entities[8].addresses[1].type', line 1, position 8514."
this is the Code i am using ( i do have a client OAuth key):
var api = new ININ.PureCloudApi.Api.UsersApi(); return api.GetUsers();
I don't know if this issue is related to the new version released.
UPDATE: i did upgrade the SDK version and it worked, thanks.
tim.smith | 2016-07-26 21:03:20 UTC | #2
Twin_Engines, post:1, topic:180
UPDATE: i did upgrade the SDK version and it worked, thanks.
Yep. It's an issue with enum values when the API adds some. The SDKs can't parse the new values if you're out of date. I'm working on a project this week to remove the strongly typed enums in favor of string properties so this doesn't keep happening.
system | 2017-08-28 19:25:37 UTC | #3
This post was migrated from the old Developer Forum.
ref: 180