web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Saving to Json File format from D365

(0) ShareShare
ReportReport
Posted on by 80

Hi All,

I would like to save a file in Json format, I am currently using Newtonsoft.Json.JsonTextWriter to create the object in D365 , I am able to convert response/payload to string format which is fine. 

Issue is , I need to save this file in Jason format, I understand Json file is a notepad with a format. 

My question , in D365 do we have any option to save it directly to .json file instead of writing a code to create a notepad with json file format? 

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    235,800 Most Valuable Professional on at
    RE: Saving to Json File format from D365

    JSON is a text format. A notepad is not a format; it's a text editor on Windows, i.e. an application capable of reading and writing files. There are many such applications beside Notepad.

    I'm note sure what you're asking about, because "to create a notepad with json file" makes little sense to me. I guess it's either how to save a file in general, or how to set a file extension to .json (maybe by "to create a notepad" you mean "to create a file with .txt extension).

    You didn't tell us how you want to save the file, but if you want to give it to users for download, use something like File::SendFileToUser(stream, 'myfile.json').

  • Suggested answer
    Rahul Mohta Profile Picture
    21,028 on at

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 665 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 595 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 558

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans