Extracting data from tables in emails: Difference between revisions

From Planfix
Jump to: navigation, search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 5: Line 5:
|description=Extracting data from tables in emails
|description=Extracting data from tables in emails
}}
}}
Planfix is able to parse data from HTML tables into infoblocks in emails:
Planfix is able to parse data from HTML tables into [[Email rules: Extracting data | infoblocks]] in emails:


https://s.pfx.so/pf/da/5lvSwb.png
https://s.pfx.so/pf/kk/0SgFow.png


Data extraction is configured in [[Creating and editing rules | email rules]]:
Data extraction is configured in [[Creating and editing rules | email rules]]:


<screenshot>
https://s.pfx.so/pf/fX/gPk4xB.png


== Setup ==
== Setup ==
*Receive an email in Planfix.
*Receive an email in Planfix.
*Copy the address of the task created from the URL bar in your browser or directly from Planfix.
*Copy the address of the task created from the URL bar in your browser or directly [https://s.pfx.so/pf/9h/P68lwN.png from Planfix].
*Configure an email rule.
*Configure an email rule.
*Use testing to find the table number of the table table to be parsed.
*Use testing to find the table number of the table table to be parsed.
Line 23: Line 23:
Please note that there are several methods of extracting data from rows in an HTML table:
Please note that there are several methods of extracting data from rows in an HTML table:


<screenshot>
https://s.pfx.so/pf/IJ/sUt6Vb.png


'''*Table index number''' — corresponds to the location of the <table> tag in the HTML
'''*Table index number''' — corresponds to the location of the <table> tag in the HTML
Line 38: Line 38:
Let's take a look at an example that extracts an order number from a specific column and row:
Let's take a look at an example that extracts an order number from a specific column and row:


<screenshot>
https://s.pfx.so/pf/MS/01SlmR.png


The email rule should look like this:
The email rule should look like this:


<screenshot>
https://s.pfx.so/pf/BQ/f72gPf.png


== Important ==  
== Important ==  

Latest revision as of 11:11, 19 July 2023

Planfix is able to parse data from HTML tables into infoblocks in emails:

0SgFow.png

Data extraction is configured in email rules:

gPk4xB.png

Setup

  • Receive an email in Planfix.
  • Copy the address of the task created from the URL bar in your browser or directly from Planfix.
  • Configure an email rule.
  • Use testing to find the table number of the table table to be parsed.
  • Add the necessary infoblocks and other operations, and save the rule.
  • Send another test email and make sure the parsing is working correctly.

Please note that there are several methods of extracting data from rows in an HTML table:

sUt6Vb.png

*Table index number — corresponds to the location of the

tag in the HTML *All contents — use this to make sure you're in the right table, since email layouts are often also tables, which can make it more difficult to find the correct number *All rows — use this if you want to create a data tag entry from table data *Last row — use this to get a summary value from a table *Specific column and row — use this when the data you need, such as a name or phone number, is in a specific cell in a table/

Example

Let's take a look at an example that extracts an order number from a specific column and row:

01SlmR.png

The email rule should look like this:

f72gPf.png

Important

Sometimes data in a table is stored in a separate table made up of one field within a cell, instead of just in the cell, resulting in a table inside a table cell. This doesn't look different from a regular table, but it's actually two unrelated tables. When this happens, extracting data by row can be difficult. Keep this in mind when extracting data.


Go To