Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
27 replies
Subscribers
4 subscribers
Views
49030 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Reports
Export to Excel
rajivr
Certified Associate Developer
over 7 years ago
My issue is:
I want to export may be one to two lakh of records in to an excel at a time. But i am not able to achieve this because the tool is not able to do so. So i had gone for batching(8000 records per batch) in exporting the same. Any alternatives on this?
Thanks in advance.
OriginalPostID-263138
Discussion posts and replies are publicly visible
0
bhanuprakashm
over 7 years ago
@rajivr, AFAIK it is the only one approach for exporting the data in excel through batches..
I am also face the same issue.so I am exporting through batches only.
let see other mates comments..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
@Rajiv As we have tested this just an hour ago, we are successfully able to export more than 3 lakhs records into excel with 2-4 seconds, the table consist of 10 columns and expecting it to export till 10 lakhs rows at a time as per this scenario
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rajivr
Certified Associate Developer
over 7 years ago
Thats a good news. Can you please tell me how you did it @Alok Singh?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
First of all, I inserted more than 3 lakhs rows in a table using java in loop, once it's got over, I used SQL to Excel smart service by passing the query as select * from tableName , and when I started the process execution, I found within 3 to 4 second the flow got moved forward and at the next node I.e. User Input Task I configured to download the generated document, I found it was containing more than 3 lakhs four thousand rows.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rajivr
Certified Associate Developer
over 7 years ago
Thanks a lot. I did not try the above smart service yet. I had tried getdatasubsetdownloadlinkfromrule(rule, input) which is not a good option if more number of records has to be exported. Let me try this smart service.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rajivr
Certified Associate Developer
over 7 years ago
yes it worked out ! The smart service is able to do this.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
Nice to see that, it worked :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chitra Sharma
over 7 years ago
@Alok We have tempo reports and can run a process from link using a!startProcess which includes SQL to Excel smart service to export data, but in reports we would not be able to show a User Input Task to provide a download link of created document. Is there any way(a smart service/expression function) which can be included in process model that would directly download the file, same as export to datasubset does.
Thanks in advance!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
@chitrarekhas not sure but we can try following:
1) Make the report drillable
2) On drill call an interface which will invoke a web-api on load() (using Expression Rule)
3) Use this Web-API to invoke a process model
4) create 2 parameterized process variable, one for, where condition input for SQL as drillable and another as Integer for returning DocumentID
5) Use Export SQL to Excel Smart Service
6) get the generated Document ID as Response
7) and populate the document using toDocument(documentId) under the above Interface (Which appeared on drilldown)
8) Use the above document under documentDownloadLink
Have a try on this, hope this will work out, please let me know whether this worked or not
Thanks
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chitra Sharma
over 7 years ago
Thanks Alok!, I have created a web API and it's returning the newly created doc ID. Would you please let me know how should I invoke that API using Expression rule. I tried calling calling using httpQuery() but it does not return doc id in its repsonse.
Thanks again!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>