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

Announcements

No record found.

News and Announcements icon
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
    Rahul Mohta Profile Picture
    21,042 on at
  • Suggested answer
    Martin Dráb Profile Picture
    239,031 Most Valuable Professional on at

    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').

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 659

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 465 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 304 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans