Hello everyone,
I'm trying to get data from a web service. There is a method name is "getCurrencyID" returning data as lista according to the web services document. I get the data with C# but i coudn't compile my code on AX. I had similar issue for another method on same web service. I fixed that problem with this solution link.
This is what web services document says;
GetValueListResponse { "Status" : string, // Success , Error "StatusMessage" : string, "Properties" : List } Property { "Key" : string // ID "Value" : string // Name }
This is my C# code;
string _currencyID = client.GetCurrencyId(token, "USD").Properties[0].Key;
I tried to compile it on AX like this;
List currencyIDList = new List(Types::String); getValueListResponse = axClient.GetCurrencyId(token,"USD"); currencyIDList = getValueListResponse.get_Properties(0).Key;
When i tried to compile it I'm getting this error; "Argument '0' is incompatible with the required type."
How can i solve this?