I am working on generating service-wise Excel reports in a predefined format. The report structure includes fields like WO, District, Technician, Total Cost, and a header section where I need to display the Service Name (e.g., Assess, Deliver, Install, Repair and Replace).
I am able to:
Place all tabular data dynamically
Calculate totals correctly
Generate separate files per service
However, I am facing an issue with dynamically updating the “Service Name” field in the header (Cell B1). See the reference Picture
The service name exists in a different dataset/column, and while generating each service-wise report, I want this header to automatically reflect the corresponding service name.
Problem:
The header value is not getting updated dynamically even though the rest of the data is working fine.
Requirement:
For each generated report (per service), the header “Service Name” should show the correct service (e.g., Assess, Repair, Install, etc.)
The format/layout of the Excel sheet should remain unchanged
Question:
What is the best approach to dynamically populate a header field like “Service Name” from another data source while generating formatted Excel reports
In AutomationEdge Process Studio, you can dynamically update a header cell (e.g., B1) while populating a separate data table and preserving the Excel template layout. The following approaches can be used depending on your workflow design.
Approach 1: Two Microsoft Excel Writer Steps (Recommended)
Step 1 – Write the header
Use a Microsoft Excel Writer step with the template file.
Set Start writing at cell to B1.
Enable Omit Header and Leave styles of existing cells unchanged.
Include only the Service Name field.
Step 2 – Write the tabular data
Add a second Microsoft Excel Writer step targeting the same output file and sheet.
Configure the file and sheet options to Write to existing.
Set Start writing at cell to A5 (or your table’s starting cell).
Map the required data fields and preserve existing cell styles.
Approach 2: Parent–Child Workflow
This approach is useful when generating separate Excel reports for different services.
Parent workflow: Group or filter records by Service Name and use a Workflow Executor configured to execute for every input row.
Pass the service name as a parameter to the child workflow.
Child workflow: Retrieve the parameter using Get Variables and use it to generate the output file name.
Use the two-writer strategy from Approach 1 to write the service name to B1 and the corresponding dataset from A3.