Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
I am using a read-only grid to show data for reports. I need to export the data to excel but the grid has more than 50 columns. I have already tried default export to excel feature and a!exportDataStoreEntityToExcel() function but none of these worked. FYI:
Is there any way I can export the data to excel?
Discussion posts and replies are publicly visible
Please share the configuration
a!httpResponse( /* * Set an HTTP header that tells the client that the body of the response * will be a CSV attachment. */ headers: { a!httpHeader( name: "Content-Disposition", value: "attachment; filename=" & char( 34 ) & "agniwesh" & now() & ".csv" & char( 34 ) ) }, /* * Create a CSV value of 'local!user' and place it in the response body. */ body: { "Id,name,age,comment" & char( 10 ) & joinarray( a!forEach( items: local!details, expression: { joinarray( merge( { char( 34 ) & fv!item.id & char( 34 ) }, { char( 34 ) & fv!item.name & char( 34 ) } ), "," ) } ), char( 10 ) ) } )
Hi Karthik. Could you tell me what was the alternate approach implemented after decommissioning?
I tried this approach, but it is creating new version of same document instead of updating, and as result i am getting columns after 50 columns only. and first 50 columns are blank.
Did you find any resolution as we are also facing issue to extract large volume and 200 columns?
Hi ayushk0002 & piyusha6151,
I hope you are using next sheet in the excel to export next 50 columns. So you need a sheet for a batch of 50 columns. For example you have 135 columns in total to export. It should be as follows:
Sheet 1: Column 1 to Column 50
Sheet 2: Column 51 to Column 100
Sheet 3: Rest all the columns.
Let me know if this does not work or any further confusion.
it seems to be truncating data for previouly populated columns when going for next iteration i.e. 51-100
Are you trying column 51 to column 100 in a new sheet or in the same sheet where you have populated column 1 to column 50?
am exporting 1-50 columns in sheet 1 and 51-100 in same sheet 1 which is clearing 1-50 columns data,is there anything to solve this
I've used this pattern in the past to export more than 50 columns by first building the data in an expression and then passing formatted data to the api.