Hi Team,
custom widget:
I would like to add my result set as a CSV file in Home-> Content section. it is plain CSV data.
This is useful for my user while working for larger quantities of data.user can download the result at a later point of time.
Can someone please guide me on this?
Any help is greatly appreciated.
Regards,
Sandhya
Hi,
I got an update on the mentioned issue.
I tried below as per- Add Item—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers
url--
http://<hostname>/arcgis/sharing/rest/content/users/<user>/addItem
Inputs--
Text: plain CSV formatted text
Title: resultCSV
Type: CSV
This is adding a CSVFile in Content and providing and "id" with status as "success". But when we try to view/download the added item in Portal->Content, it is not displaying my input "plain CSV text" anywhere and it is not able to download also.
Error on clicking download button-- "Item does not have a file".
Can someone please help on this. How to retrieve the input data if the above addItem approach is correct. I am not getting any clues on this topic.
Regards,
Sandhya