Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

how to convert json format to Display Xml format

Posted on by Microsoft Employee

Hi all,

please tell me any body above question,

1.I will retrieve  particular entity in lead entity in onlineMSCRM365

2.I will retrieve onely firstname,  company name ,phoneno

3.how to convert json format to xml format

4.please provide any body code 

runtime.PNGsaveData.PNG

Thanks

venkateswarlu.p

 

 

*This post is locked for comments

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: how to convert json format to Display Xml format

    You can use the JsonConvert class which contains these methods.

    // To convert an XML node contained in string xml into a JSON string  

    XmlDocument doc = new XmlDocument();

    doc.LoadXml(xml);

    string jsonText = JsonConvert.SerializeXmlNode(doc);

    // To convert JSON text contained in string json into an XML node

    XmlDocument doc = JsonConvert.DeserializeXmlNode(json);

    Also, check this link out:

    www.newtonsoft.com/.../ConvertingJSONandXML.htm

    Hope this helps.

  • Suggested answer
    ARIFNIIT Profile Picture
    ARIFNIIT 1,391 on at
    RE: how to convert json format to Display Xml format

    Refer this article for this

    tqdev.com/2017-converting-json-to-xml-in-javascript-and-php

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans