Skip to main content

Notifications

Power Automate - General Discussion
Answered

Validate the Excel columns

(0) ShareShare
ReportReport
Posted on 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
    Sathya123 18 on at
    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
    Sundeep_Malik 6,480 on at
    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
    Sathya123 18 on at
    Re: Validate the Excel columns

    Sathya123_0-1663171183464.png

     

  • Sathya123 Profile Picture
    Sathya123 18 on at
    Re: Validate the Excel columns

    Sathya123_2-1663170905985.png

     

  • Sundeep_Malik Profile Picture
    Sundeep_Malik 6,480 on at
    Re: Validate the Excel columns

    @Sathya123 

    Can you add the screenshot of the action in edit mode

  • Sathya123 Profile Picture
    Sathya123 18 on at
    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
    Sundeep_Malik 6,480 on at
    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
    Sathya123 18 on at
    Re: Validate the Excel columns

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

  • Sathya123 Profile Picture
    Sathya123 18 on at
    Re: Validate the Excel columns

    My requirement is validated columns in power automate cloud flow

  • okeks Profile Picture
    okeks 802 on at
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard