Lightning-Flow-Scanner / lightning-flow-scanner-sfdx

A Salesforce CLI Plugin designed to pinpoint deviations from Industry Best Practices in Salesforce Flows, ensuring standards of business automation excellence.
https://www.npmjs.com/package/lightning-flow-scanner
GNU Affero General Public License v3.0
112 stars 12 forks source link

Export result with CSV format #74

Closed eguichardsf closed 7 months ago

eguichardsf commented 1 year ago

It would be great to be able to export results as a CSV to easily share with other team members.

RubenHalman commented 1 year ago

@eguichardsf Thank you for this suggestion. We have implemented a download button in the Visual Studio Code Extension. Does that provide you a workable solution for now?

nvuillam commented 1 year ago

I think that providing output file from CLI would help for cicd workflows, as we could upload the results as job artifacts :)

I can implement that someday:)

razyogev commented 1 year ago

@eguichardsf Thank you for this suggestion. We have implemented a download button in the Visual Studio Code Extension. Does that provide you a workable solution for now?

Currently it seems I can either download the overview or a specific flow details. Would it be possible to download the details of all the flows or selected flows?

RubenHalman commented 1 year ago

@razyogev Getting all details should be possible if you go to All Results from the overview(top left). let me know if this doesnt work for you

razyogev commented 1 year ago

@razyogev Getting all details should be possible if you go to All Results from the overview(top left). let me know if this doesnt work for you

When I export "All Results" I get the same table in csv format: coverage,resultCount,label,type 0,12,Account - After Save,AutoLaunchedFlow 0,1,Account - Before Save,AutoLaunchedFlow

It's more important to know what the detected flow issues actually are, I'm not sure what the best format for the export might be, perhaps json? Currently I need to click the "Details" button on each and every item on the list if I want to see the maybe in json format instead of having to click the details button on each an every row

nvuillam commented 1 year ago

It's on the way :)

image

razyogev commented 1 year ago

Awesome!

RubenHalman commented 7 months ago

A csv feature is included in the VSCE 3.0. In the future we hope to include something similar in sfdx, however, the comms on this ticket have become clouded. @nvuillam might not have considered the vscode extension in his approach, but unfortunately we need a different solution that supports both the sfdx and vsce application. If anyone has appetite to do this, please make sure to let us know how we can get csv output from the scan method, similarly to how one can already use the --json parameter to get the output data in JSON format