Sunday, January 4, 2026

How to create json foramt using MAP class x++ D365FO




   Map myMap;
   myMap.insert("Invoice account", "INV001");
   myMap.insert("SalesId", "SO-100-001");
     Str json = JSONSerializerExtension::serializeClass(myMap);
OutPut json:
{
  "Invoice account": "INV001",
  "SalesId" :"SO-100-001"
}


Call API using x++ D365FO

 System.Net.HttpWebRequest    request; System.Net.HttpWebResponse   response; System.IO.Stream             dataStream; System.IO.StreamReade...