You are viewing limited content. For full access, please sign in.

Question

Posted to Government

Question

Problem to generate CSV File Instead of TXT in Laserfiche Workflow

asked on December 26, 2025

Hello Team,

I followed the instructions in Forms fields to create a CSV file with workflow - Laserfiche Answers to generate a file and attach it to an email using Laserfiche Workflow. However, the file is being generated as a .txt file instead of a .csv file.

As a result, the team must download the file and manually change the extension from .txt to .csv, which is inconvenient and error-prone.

Does anyone have suggestions or best practices for generating the file directly as a .csv instead of .txt?

Thanks in advance for your help.

Best regards,

0 0

Replies

replied on December 26, 2025

Hi Fabian, 

Where are you creating the file that you are sending?  Are you creating the file using the SDK Script step?  If so, are you naming the file with the .csv extension?

0 0
replied on December 31, 2025

Hello! I tried but the file takes the name xyz.csv.txt, for this reason I removed the extension. This is the code I am using:

            using (DocumentInfo doc = Document.GetDocumentInfo((int)GetTokenValue("CreateEntry_OutputEntry_ID"), this.RASession))
            {
                doc.AppendPage();
                PageInfo PI = doc.GetPageInfo(1);
                PI.WriteTextPagePart(GetTokenValue("Report Text").ToString());
                PI.Save();
            }

this is the way I created the file 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.