Converts a CSV you upload or link to into a real .xlsx workbook and emails it to you as an attachment.
Uses
CloudConvert
Gmail
Turn a CSV into an Excel file
csvSource to blank.Set csvSource to blank.excelFileName to blank.Set excelFileName to blank.sendTo to blank.Set sendTo to blank.csvSource and save it as source.Trim csvSource and save it as source.source in lowercase doesn't start with doc_ and source in lowercase doesn't…If source in lowercase doesn't start with doc_ and source in lowercase doesn't…Yes
No
No steps
excelFileName and save it as fileName.Trim excelFileName and save it as fileName.fileName doesn't end with .xlsx (ignoring case)If fileName doesn't end with .xlsx (ignoring case)Yes
fileName to fileName.xlsx.Change fileName to fileName.xlsx.No
No steps
converted to blank.Set converted to blank.problem to blank.Set problem to blank.convertErrorIf a step below fails, save the error as convertErrorTry
converted.Convert a file to xlsx. Save it as converted.On error
convertError.message and save it as rawReason.Trim convertError.message and save it as rawReason.source with the file you gave it in rawReason and save it as safeReason.Replace source with the file you gave it in rawReason and save it as safeReason.safeReason contains ://If safeReason contains ://Yes
problem to the file could not be converted.Change problem to the file could not be converted.No
problem to safeReason.Change problem to safeReason.problem isn't emptyIf problem isn't emptyYes
problem.Stop and report a problem: The CSV could not be turned into an Excel workbook, so nothing was emailed: problem.No
No steps
converted.output_format lowercase and save it as gotFormat.Make converted.output_format lowercase and save it as gotFormat.gotSize to converted.size_bytes multiplied by 1.Set gotSize to converted.size_bytes multiplied by 1.converted.document_ref and save it as workbookRef.Trim converted.document_ref and save it as workbookRef.gotFormat is not xlsxIf gotFormat is not xlsxYes
gotFormat.Stop and report a problem: The converter sent back something other than an Excel workbook, so nothing was emailed. It came back as: gotFormat.No
No steps
gotSize is less than 1If gotSize is less than 1Yes
No
No steps
workbookRef doesn't start with doc_If workbookRef doesn't start with doc_Yes
No
No steps
sendTo.Send an email to sendTo.
Subject: fileNameAttached is fileName, converted from the CSV set up in this workflow's 'csvSource' step. Every value was carried across as it was written - nothing was rounded, relabelled or left out.fileName.Show in the output: Emailed fileName.