Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Answered

Excel Validation after upload from Dynamics Portal with MS FLow?

Posted on by

Hi all,

i search a way to validate an excel file after Portal User uploaded in dynamics portal. What is the best way to validate an excel file after upload? Is there a "easy"-way to make simple checks like "Cell A8 be no greater than 50" or the textvalue in Cell A1 must be "XYZ" etc. and give error massage back to the User. I know we can develop a plugin with the validation logic but maybe there is a simple way with ms flow? Can i read excel file with ms flow after a excel file is attached in dynamis forms, then read the rows and cells with MS FLow, and then make my check rules?

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Excel Validation after upload from Dynamics Portal with MS FLow?

    Hi Dy365Fan,

    Yes, you can.

    As you mentioned, “The Excel file will uploaded via the portal and stored as an attachment in notes”, which means that one note record with attachment has created.

    You can set trigger with ‘When a record is created’ as following screenshot shown.

    pastedimage1615785534959v2.png

    pastedimage1615785595232v3.png

    Then use ‘create file’ action to get the attachment.

    pastedimage1615785647422v4.png

    pastedimage1615785713136v5.png

    And following video can help you a lot.

    Excel Data Import in Dynamics 365 CRM Portals - YouTube

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Dy365Fan Profile Picture
    Dy365Fan on at
    RE: Excel Validation after upload from Dynamics Portal with MS FLow?

    Hi

    Thanks, that will take me further. So I can test a few things without having to develop a plug-in in Dynamics. But then I still have a problem, how do I get the Excel file?
    The Excel file will uploaded via the portal and stored as an attachment in notes, can I access it via MS Flow?
    ]
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Excel Validation after upload from Dynamics Portal with MS FLow?

    Hi Dy365Fan,

    In power automate, Excel Online (Business) is the necessary if you want to read excel data.

    Excel Online (Business) - Connectors | Microsoft Docs

    pastedimage1615526960944v2.png

    Many actions about it can read excel data in the flow:

    List rows present in a table can list all rows data about the excel.

     pastedimage1615527207751v3.png

    Get a Row: get one row data based on key column value.

    Solved: Excel Read Cell Value and Send in Email - Power Platform Community (microsoft.com)

    pastedimage1615527519963v4.png

    However, i f found that the flow could not fulfill all your requests, it can't get column name(A1), 'Get a Row' action can get a row based on unique id, then you can get one cell value based on column name in the row.

    pastedimage1615528792524v7.png

    It's not dynamic in the full sense, because when you get the data from a table, he gets the cell data based on the column names of the excel, which means you have to create flow for each excel if you want to validate multiple excels.

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans