Skip to main content
Community site session details

Community site session details

Session Id :
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

(0) ShareShare
ReportReport
Posted on 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:
  • Andre7 Profile Picture
    on at
    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 at
    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 at
    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 at
    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 at
    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 at
    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 at
    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1