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
    Rahul Mohta Profile Picture
    21,032 on at
  • Suggested answer
    Martin Dráb Profile Picture
    236,570 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').

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 813

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 738 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 566 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans