Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Answered

Validate the Excel columns

Like (0) ShareShare
ReportReport
Posted on 13 Sep 2022 09:59:45 by 18

Hello,

 

 

I have one excel file. I need to validate excel columns like Name, Date of Birth.How can i validate these columns in power automate cloud flow.

  • Sathya123 Profile Picture
    18 on 28 Sep 2022 at 04:59:13
    Re: Validate the Excel columns

    Hi,

     

    Is there any way did not use the apply to each and validate the name field.

     

  • Verified answer
    Sundeep_Malik Profile Picture
    6,480 on 14 Sep 2022 at 16:09:15
    Re: Validate the Excel columns

    Hey @Sathya123 

    You missed an s in contains function in items. You have written item in that. 

     

    contains(outputs('Compose'),items('Apply_to_each'))

     

    And also add a 0 to the array of strings. So that if 0 is also there in the name, it will called it invalid. I missed that.

  • Sathya123 Profile Picture
    18 on 14 Sep 2022 at 16:00:35
    Re: Validate the Excel columns

    Sathya123_0-1663171183464.png

     

  • Sathya123 Profile Picture
    18 on 14 Sep 2022 at 15:56:31
    Re: Validate the Excel columns

    Sathya123_2-1663170905985.png

     

  • Sundeep_Malik Profile Picture
    6,480 on 14 Sep 2022 at 11:43:53
    Re: Validate the Excel columns

    @Sathya123 

    Can you add the screenshot of the action in edit mode

  • Sathya123 Profile Picture
    18 on 14 Sep 2022 at 11:42:17
    Re: Validate the Excel columns

    I have an error in Apply to each

    Error Details:

    Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'item' must not have any parameters.'.

  • Sundeep_Malik Profile Picture
    6,480 on 14 Sep 2022 at 10:05:42
    Re: Validate the Excel columns

    Hey @Sathya123 

     

    Save your name in a compose. Make another compose and store array of strings containing each digit.

     

    Sundeep_Malik_0-1663149550482.png

    After this run a apply to each loop with array of digits as the input. After this use condition action and inside use contains function and match it the current item. If its equal to true, there is a digit in the name and if its false there is no digit in the name. 

     

    contains function:  contains(outputs('Compose'),items('Apply_to_each'))

     

    Sundeep_Malik_1-1663149774459.png

     

    I hope you like it.

     

  • Sathya123 Profile Picture
    18 on 14 Sep 2022 at 09:06:51
    Re: Validate the Excel columns

    This is my format for Ex: ABCDE1234. I want to validate Name Contains alphabet only.

  • Sathya123 Profile Picture
    18 on 13 Sep 2022 at 11:43:49
    Re: Validate the Excel columns

    My requirement is validated columns in power automate cloud flow

  • okeks Profile Picture
    802 Super User 2024 Season 1 on 13 Sep 2022 at 11:33:02
    Re: Validate the Excel columns

    I don't know how your Excel gets filled, but can't you simply do that with Data validation within Excel itself?

     

    https://www.extendoffice.com/documents/excel/3408-excel-only-allow-alphanumeric.html#a3

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,369 Most Valuable Professional

Leaderboard
Loading started