Hi All,
I am facing an issue in storing data into entity.
I have a CSV file and need to store the CSV file data in entity,
I tried adding using CSV util, but was not able to.
Following is the excel data:-
Can anyone help me on this.
Thanks,
DM
Hi DM,
Could you please explain what issue you are facing ?
Regards,
Jitendra
Jitendra Raghuvanshi wrote:
I am fetching file from a directory and storing it in the Binary data(bytes) format;
Now i need to extract data from this stored binary data;
So how do i do this; Originally the files are of CSV files; I store them into binary data.
I need to extract this binary data and store it into Outsystem database(entity)
To be specific:- Binary data of CSV files
I need to convert it to JSON and the store it into OS entity
Thanks for the concern.
Hi,
One more thing to mention my file has Microsoft Excel Comma Separated Values File (.csv)
and not Microsoft Excel Worksheet (.xlsx)
Hi Diraj,
Please find the screenshot below for the approach you can pick to achieve the desired result.
you can pass the binary content to excel to recordlist and define it's record definition and then process the same.
Hi Dhiraj,
In case of csv then try to use the below approach.
Hope this will help.
Manish Jawla wrote:
Hi Manish,
I tried this, but how will i store the comma seprated data into entity,
I need complete record.
Can you provide the information about String_Split, String_Split.list and Process Data? Thank you very much!
please, try these components :)
https://www.outsystems.com/forge/component/636/csvutil/
https://www.outsystems.com/forge/component/601/csv-importer/
https://www.outsystems.com/forge/component/2939/genericimportfiles/
Cheers.
Another abordation it's:
Cheers,Nuno Verdasca
Hi Dheeraj,
That is pretty simple, you have comma separated list available to you.
Now, you can use split string(newline() as delimiter) and process each row by again using split string(using comma as delimiter) but take special care for empty values, assign values to record type variable and create record in db.
Manish Jawla
Hi Manish Jawla,
can you please show the assignments in process data.
regards,
Vishnu