1007
Views
9
Comments
How to Download data of an Entity in Json format
Question

Hi,

      How to Download data of an Entity in json format.


Thanks,

R.karthik

   

2026-06-05 12-38-17
Eduardo Jauch

Hello Karthik,

Since version 10 you have the JSON statements (available in logic), that take a list and return the JSON.
Just create an aggregate to fetch your data and pass the returned list to the JSON Serialize statement.

Cheers.

2017-04-03 06-54-35
Joost Rutten

A way to do this is to write a REST-webservice that expose a list of records in JSON-format.

Other way is to write an action that creates a list of records and then use the JSONSerialize action.

2020-07-30 08-32-53
Ricardo Cruz

Inside logic You have this:


You only need to create an aggregate or a SQL Advanced query to fech the data and pass the output list to the JSON Serialize statement.

UserImage.jpg
Ronan T

Hi,

In the download it is showing error in the file content data type, the datatype should be binary data but json is of text datatype.

Thanks,

Ronan  T


2020-05-29 14-07-58
Rajendra Singh

Hi Ronan,

Change the binaryData to Text.



Rajendra Singh

2019-09-17 09-11-00
João Pedro Abreu
Staff

There's a system extension called BinaryData that contains actions that convert text to binary and vice-versa.

2022-02-07 08-52-30
Pranav Pandey

Hi Ronan T,

I am correct , then you need json data in text file on download.

If yes then as João Pedro Abreu  add the extension search for BinaryData -> and add TextToBinaryData  function .On downloading the json , named the export file in text extension format . For eg : Sample.txt.

Please find the sample oml in the attachment.

Happy Coding.  :)

SampleJson.oml
UserImage.jpg
Ronan T

Pranav Pandey wrote:

Hi Ronan T,

I am correct , then you need json data in text file on download.

If yes then as João Pedro Abreu  add the extension search for BinaryData -> and add TextToBinaryData  function .On downloading the json , named the export file in text extension format . For eg : Sample.txt.

Please find the sample oml in the attachment.

Happy Coding.  :)

Hi Pranav Pandey,

Thanks ,it is working fine




2022-02-07 08-52-30
Pranav Pandey

Ronan T wrote:

Pranav Pandey wrote:

Hi Ronan T,

I am correct , then you need json data in text file on download.

If yes then as João Pedro Abreu  add the extension search for BinaryData -> and add TextToBinaryData  function .On downloading the json , named the export file in text extension format . For eg : Sample.txt.

Please find the sample oml in the attachment.

Happy Coding.  :)

Hi Pranav Pandey,

Thanks ,it is working fine




Great . If that worked, then you can mark it a solution.. :)


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.