
I am trying to add a download as Excel button to a FetchXML query in the portal.
In a normal entity list, you would go to Options > View Actions > Download to add a button. That button is dynamically appended to the entity list web page. I found through my inspector that this happens in a file called "app.bundle-obfuscationcode.js". My thought is that I can copy the download code and have apply it to my custom download button. Unfortunately, the code I see in the inspector has been obsfuscated, meaning it gives me an incredible headache trying to figure out how the "download" is happening.
I have three questions:
1. Is it possible to view this app.bundle.js file in its original form?
2. If not, does anyone know how to get to the process (I assume it is a workflow?) that generates the Excel file?
3. If this is a bad idea, does anyone have any suggestions on how to generate an Excel download from the results of my Fetch XML query?
Context: I am using the Liquid <fetchxml myQuery> tag on a web page to display entity information. I would like to have a download button on this entity, but my requirements mean I can't use the built in entity list.
Hi, I don't think you will have much luck with the original entity list export.. that uses a lot of internal elements that aren't exposed to the end user
I would give it a go on regular jQuery libraries that exports table to excel, a quick online search here I can see one: https://www.jqueryscript.net/table/Export-Html-Table-To-Excel-Spreadsheet-using-jQuery-table2excel.html
haven't tried myself but should work fine