web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : wiQh8WqdlqnKmPet2603cc
Power Apps - AI Builder
Unanswered

Incoming automated email attachments need to be filtered by names, data extracted from document and a row of specific data added to two different tables

Like (0) ShareShare
ReportReport
Posted on 26 Jan 2023 00:40:41 by

I have four types of PDF attachment types, when incoming emails and attachments are received, I want to first filter the email attachment by attachment name or attachment content,  second, extract data from each PDF attachment, third, add a row into one of the four types of tables, depending on what type of PDF attachment the work flow receives.

 

Can someone assist me with this? So far I have been able to complete everything except, adding a row of data into more than one table based on filtering the attachment name.

 

Your assistance will be greatly appreciated!

Categories:
I have the same question (0)
  • Andre7 Profile Picture
    on 27 Jan 2023 at 17:05:15
    Re: Incoming automated email attachments need to be filtered by names, data extracted from document and a row of specific data added to two different tables

    Your solution makes sense to me, unfortunately your work flow diagram is in a foreign language, but I do recognize the shapes and symbols. 

    -extract info

    -filter on the exact field, you can do it with "equals to", if not, you will need to use an expression

    got it!

    I am new to Power Automate and have very limited development skills, so the piece I need detailed guidance with is how to logistically setup tables A and B. 

    I understand how to setup a single table, but seem to be struggling finding the right parameters to add another additional table. 

    ex.

    ----------

    | extract |  ----> Table A

    ----------

           ?  ------> Table B

     

    can you show me a diagram?

  • ignaceopsommer Profile Picture
    6 on 27 Jan 2023 at 07:48:05
    Re: Incoming automated email attachments need to be filtered by names, data extracted from document and a row of specific data added to two different tables

    hello

     

    ignaceopsommer_0-1674805470288.png

    this is an example how it can be fixed

    - loop on every attachment

    - store on onedrive (optionally)

    - extract info

    - check content of a field : you have a list of all fields extracted together with their "value", so if it needs to be an exact match, you can do it with "equals to", if not, you will need to use an expression

    - based on the content you can do update in table A or table B

     

    hope this helps

     

    regards

    ignace 

  • Andre7 Profile Picture
    on 27 Jan 2023 at 01:09:05
    Re: Incoming automated email attachments need to be filtered by names, data extracted from document and a row of specific data added to two different tables

    Ex. This is what I have working now with just table A only, but I need to add table B.

    Andre7_3-1674781734032.png

     

    Andre7_4-1674781734035.png

     

    Andre7_5-1674781734036.png

     

     

     

  • Andre7 Profile Picture
    on 27 Jan 2023 at 01:08:10
    Re: Incoming automated email attachments need to be filtered by names, data extracted from document and a row of specific data added to two different tables

    I have two different type of PDF attachments, and their data should be captured and added to a table based on a keyword in their content.

    PDF attachment 1 should be added into a row into table A

    PDF attachment 2 should be added into a row into table B

    Using a filter based on the attachment content keyword, I would like the data extracted, and added into a row into either table A or B.

    Does that clarify my objective?

     

  • ignaceopsommer Profile Picture
    6 on 26 Jan 2023 at 20:07:22
    Re: Incoming automated email attachments need to be filtered by names, data extracted from document and a row of specific data added to two different tables

    hello

    i think it is possible what you ask, but can you be more precise on "so far I have been able to complete everything except, adding a row of data into more than one table based on filtering the attachment name." ?

    adding a row in a XLS table is possible, have a condition based upon the name of the attachment is possible

    so i need to know more precisely what is your issue

    thanks for your input

    regards

    Ignace

     

  • Andre7 Profile Picture
    on 26 Jan 2023 at 14:15:15
    Re: Incoming automated email attachments need to be filtered by names, data extracted from document and a row of specific data added to two different tables

    I am referring to a table in an excel spreadsheet. The separation of the PDF attachments is based on their names and contents. ex... contracts, field trips, robotics and Christian life.

    Below is an example of my workflow. I am missing the second excel spreadsheet output. (add a row to a table)

    Andre7_0-1674742435184.png

     

  • CedrickB Profile Picture
    Moderator on 26 Jan 2023 at 09:08:03
    Re: Incoming automated email attachments need to be filtered by names, data extracted from document and a row of specific data added to two different tables

    When you say table I guess you mean Dataverse table?

    Did you consider using the switch statement https://learn.microsoft.com/azure/logic-apps/logic-apps-control-flow-switch-statement to route to the proper "insert into table" path based on the document type?

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473