Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
This article explains how the excel input file can be processed using out of the box connectors.
It is assumed that readers of this article know how to create integrations on Webmethods.io.
Assets Developed
Prerequisite
Workflow
• Create the workflow and name it “ExcelProcessingWorkFlow”. • Select the excel online connector from the connector list. • Configure the connector Excel online
Configure the Excel online connector
• Select Action Get Rows • Name: Get Packaging list details • Authorized Excel Online: Create Account
• Once the connector is configured, we need to configure the location from where the Excel data needs to be picked up • In the connector it can read the data only from one drive location. • Select the folder name. it will show you all the folders available in one drive • Select the Excel file. This will show all the excel files are in xlsx format. Any excel file in older format like xls format will not be visible in the drop-down menu • Select the Sheet name. It will show all the sheets present in the excel sheet. • From Row and to Row are optional fields. If you have the requirement to select some particular rows and columns then we need to pass the values. • In our use case We want to load all the data from the selected sheet, Therefore we have selected nothing in the rows and columns.
• Once we extract the data from the Excel sheet, we need to parse the data so that it can be used for further processing. • Use Json Stringfy application to stringify the data coming out from Excel online connector. • After getting the data we will submit the data to the flow service for implementing complex transformation logic.
Flow Service
End-to-End Testing
• Logs for getting the excel data from one drive location
• Below flow service gets invoked from workflow
Flow Service: TransformExcelData.zip (12.7 KB)
Workflow: export-fl4df08198b87e1c5bba8168-1708338576316.zip (137.0 KB)
from_row and to_row attributes in input of the Excel online connector should be used to process large Excel files in chunks.
Another way of processing Excel files is to combine “SpreadSheet reader” and “SpreadSheet to JSON”. They can be used to process Excel files coming from SharePoint.