Getting text from a URL in NAV 2015

snyktpsnyktp Member Posts: 75
Hey Guys,

Is it no longer possible in NAV 2015 to read a parse a JSON string and use it to grab data from a URL? I have below codes in NAV 2009 and it worked ok. We tried to move the codes to NAV 2015 but it doesnt work.

Thank you

code.jpg 107.2K

Answers

  • vaprogvaprog Member Posts: 1,140
    You are using Automation. You need to find a solution using DotNet.

    I have never used JSON from NAV or .NET, so I can't give you any details, but use the search on this site to find discussions about using JSON with NAV.
  • snyktpsnyktp Member Posts: 75
    it was said that below codes are having automation issue which is not compatible with NAV2015 RTC. I am not sure if this is correct. And also how i can convert below codes to NAV 2015

    mx - Automation - 'Microsoft XML, v6.0'.XMLHTTP60
    var_ - variant

    mx.open('GET','http:/XXXX,FALSE);
    mx.send(var_);
    var_ := mx.responseStream;
    CLEAR(mx);


    Thank you
Sign In or Register to comment.