webMethods.io Integration processing excel file
Tags: webmethods, integration, excel, connectors
Published: 2024-03-01 14:56:16

---
title: webMethods.io Integration processing excel file
published: true
date: 2024-02-19 11:07:55 UTC
tags: webMethods, integration, excel, connectors
canonical_url: https://tech.forums.softwareag.com/t/webmethods-io-integration-processing-excel-file/291726
---

## Introduction

This article explains how the excel input file can be processed using out of the box connectors.

## Audience

It is assumed that readers of this article know how to create integrations on [Webmethods.io](http://Webmethods.io).

## Use Case

1. Pick the file from one drive location.
2. Extract the data from the xlsx file.
3. Transform the data into the desired format.
4. Write the data into some third-party storage location.

**Assets Developed**

- **Workflow:** This workflow is responsible for initiating the process on a scheduled basis. It will read xlsx file from one drive location.
- **Flow Service:** This service is responsible for getting the data from the workflow and transforming the data into the desired format.

**Prerequisite**

- Active [webmethods.io](http://webmethods.io) Integration account
- One drive account
- Input file in xlsx format

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

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/3/9/39b4cfed239073fc1dca4eef4c7940447b30579f_2_434x500.png)](https://global.discourse-cdn.com/techcommunity/original/3X/3/9/39b4cfed239073fc1dca4eef4c7940447b30579f.png "image")

• 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.

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/9/e/9e8f7d4e2008c71ca82e2f17c13a4f287d893233_2_690x355.png)](https://global.discourse-cdn.com/techcommunity/original/3X/9/e/9e8f7d4e2008c71ca82e2f17c13a4f287d893233.png "image")

• 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.

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/3/6/360f99aa1a5876ddf93eb3d0589457b115c57aeb_2_690x263.png)](https://global.discourse-cdn.com/techcommunity/original/3X/3/6/360f99aa1a5876ddf93eb3d0589457b115c57aeb.png "image")

**Flow Service**

- This flow service will get invoked from the workflow.
- In this flow service are logging the data on the monitor tab.
- In our use case for POC purposes we are mapping the data and creating the output document.

**End-to-End Testing**

- Place the file at the configured one drive location.
- Invoke the workflow to pick the file and start processing.
- Workflow picks the file and extracts the data from excel sheet.

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/8/4/8436235bb0cbf67c2047756f6111a9b88b57e7ce_2_690x210.png)](https://global.discourse-cdn.com/techcommunity/original/3X/8/4/8436235bb0cbf67c2047756f6111a9b88b57e7ce.png "image")

• Logs for getting the excel data from one drive location

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/2/3/237aa845078c600d6f2e1926edd4e8b0202c1226_2_690x283.png)](https://global.discourse-cdn.com/techcommunity/original/3X/2/3/237aa845078c600d6f2e1926edd4e8b0202c1226.png "image")

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/4/6/463bc4ef1982978de6abc8ab99573df7003c890e_2_690x245.png)](https://global.discourse-cdn.com/techcommunity/original/3X/4/6/463bc4ef1982978de6abc8ab99573df7003c890e.png "image")

• Below flow service gets invoked from workflow

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/5/d/5db06c27b69c6dd5cdd136824505c5f8f951dcea_2_531x500.png)](https://global.discourse-cdn.com/techcommunity/original/3X/5/d/5db06c27b69c6dd5cdd136824505c5f8f951dcea.png "image")

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/f/1/f1ab1fe15e6d63d638ac7e674afc1ace1d957575_2_690x305.png)](https://global.discourse-cdn.com/techcommunity/original/3X/f/1/f1ab1fe15e6d63d638ac7e674afc1ace1d957575.png "image")

### Points to remember

- Excel online connector supports the latest version of xlsx processing.
- Every connector has a limit on the payload size. Please refer to the documentation if your use case demands the high payload size processing like in MB’s.
- Attaching the sample workflow and flow service used in our case.

Flow Service:  
[TransformExcelData.zip](https://tech.forums.softwareag.com/uploads/short-url/lBg4aor88SQiYfEZk6iF2KqW2YB.zip) (12.7 KB)

Workflow:  
[export-fl4df08198b87e1c5bba8168-1708338576316.zip](https://tech.forums.softwareag.com/uploads/short-url/b4xUnxIeIYxWVTeK8GW5FVUfwAL.zip) (137.0 KB)

[Read full topic](https://tech.forums.softwareag.com/t/webmethods-io-integration-processing-excel-file/291726)