top of page

How to Extract Data from Outlook Emails to Excel in 5 minutes

Updated: Sep 10, 2023

Introduction: This instruction will guide you on how to extract data from emails received in Outlook and transfer it to Excel using Bitskout and Microsoft Power Automate. By following these steps, you can easily create a data extraction plugin and automate the process using AI.


Video Instruction




Step 1. Setting up Bitskout

To set up the extraction from text we need to press Create Plugin. In the plugin creation screen choose the Extract option and then From Text.



ree

You will see the screen where you can start adding the examples. Adding examples is required to teach Bitskout about your emails. Think of it as if you'd be telling a new employee of what to do.

ree



Step 2. Setting up Examples

Collect real examples of emails that contain the information you want to extract. You need only a few examples. Paste the email text into the text area:


ree



Step 3. Define the fields to extract

Identify the specific fields you want to extract from the email examples. Then add them with their respective values from the example.



ree

You can add more examples however no need to add a lot of similar ones. Two or three similar examples should be enough. Once finished, press the Create button.



Step 4. Set up the output

Once you press Create, you will see the that plugin has been created.

ree

Now we need to set up Power Automate.


Step 5: Configure Power Automate

Launch Microsoft Power Automate and start creating a new flow.

Choose Outlook trigger "When a new email arrives (V3)" as a first step.

ree

This trigger will react when you have a new email in your inbox.


Then add a new step and choose the Bitskout "Run plugin for a Text" option:


ree


Now choose the plugin first - you can use the input field to search for a plugin name.


ree

And in the Input Text choose "Body" from the Outlook step. Your final Bitskout step should look like this:


ree


Now let's run a test. Save your flow and press Test in the upper right corner.


ree

Use a Manual Trigger and send the example email to this mailbox. If your test is successful, you will see the following screen. Select all the text in the "outputs" box and copy it to the clipboard.


ree

Press Edit in the upper right corner to go back to the flow setup.


Our next step is a tiny bit technical - we need to add the Parse JSON step. This happens because Power Automate doesn't know upfront what fields our plugin will return.



ree

Let's add the Parse JSON step.


ree

Now in the Content field choose Outputs from Bitskout:


ree

Then press the button "Generate from sample". In the opened window paste the text you copied from the test and press Done.


ree

Now our steps are ready - let's set up where you want data to appear. I will use Excel for that.


ree

Now I just need to map the values from JSON step to my Excel Columns:


ree

Once you're done, the Excel will look like this with fields mapped.

ree

Now your flow is ready and you can start extracting data from emails.


Conclusion

In this How To article we wanted to show you how you can set up data extraction from emails in a very simple manner - by providing a few examples. You can use this instruction to get data from emails, notifications, and alerts to automate your workflows.




Comments


bottom of page